yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
emu_test.cc File Reference
#include <SDL.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.

Classes

class  yaze::emu::test::HeadlessEmulator
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::emu
 SNES Emulation and debugging tools.
 
namespace  yaze::emu::test
 

Functions

 ABSL_FLAG (std::string, 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)
 

Function Documentation

◆ ABSL_FLAG() [1/7]

ABSL_FLAG ( std::string  ,
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()