#include "app/platform/sdl_compat.h"
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "app/emu/snes.h"
#include "util/log.h"
Go to the source code of this file.
|
| | ABSL_FLAG (std::string, emu_test_rom, "", "Path to ROM file to test") |
| |
| | ABSL_FLAG (int, max_frames, 60, "Maximum frames to run (0 = infinite)") |
| |
| | ABSL_FLAG (int, log_interval, 10, "Log APU state every N frames") |
| |
| | ABSL_FLAG (bool, dump_audio, false, "Dump audio output to WAV file") |
| |
| | ABSL_FLAG (std::string, audio_file, "apu_test.wav", "Audio dump filename") |
| |
| | ABSL_FLAG (bool, verbose, false, "Enable verbose logging") |
| |
| | ABSL_FLAG (bool, trace_apu, false, "Enable detailed APU instruction tracing") |
| |
| int | main (int argc, char **argv) |
| |
◆ ABSL_FLAG() [1/7]
| ABSL_FLAG |
( |
std::string | , |
|
|
emu_test_rom | , |
|
|
"" | , |
|
|
"Path to ROM file to test" | ) |
◆ ABSL_FLAG() [2/7]
| ABSL_FLAG |
( |
int | , |
|
|
max_frames | , |
|
|
60 | , |
|
|
"Maximum frames to run (0 = infinite)" | ) |
◆ ABSL_FLAG() [3/7]
| ABSL_FLAG |
( |
int | , |
|
|
log_interval | , |
|
|
10 | , |
|
|
"Log APU state every N frames" | ) |
◆ ABSL_FLAG() [4/7]
| ABSL_FLAG |
( |
bool | , |
|
|
dump_audio | , |
|
|
false | , |
|
|
"Dump audio output to WAV file" | ) |
◆ ABSL_FLAG() [5/7]
| ABSL_FLAG |
( |
std::string | , |
|
|
audio_file | , |
|
|
"apu_test.wav" | , |
|
|
"Audio dump filename" | ) |
◆ ABSL_FLAG() [6/7]
| ABSL_FLAG |
( |
bool | , |
|
|
verbose | , |
|
|
false | , |
|
|
"Enable verbose logging" | ) |
◆ ABSL_FLAG() [7/7]
| ABSL_FLAG |
( |
bool | , |
|
|
trace_apu | , |
|
|
false | , |
|
|
"Enable detailed APU instruction tracing" | ) |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |