yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
emu.cc File Reference
#include "app/platform/sdl_compat.h"
#include <memory>
#include <string>
#include <vector>
#include "absl/debugging/failure_signal_handler.h"
#include "absl/debugging/symbolize.h"
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
#include "app/emu/snes.h"
#include "app/emu/audio/audio_backend.h"
#include "app/emu/input/input_manager.h"
#include "app/gfx/backend/irenderer.h"
#include "app/gfx/backend/renderer_factory.h"
#include "app/platform/iwindow.h"
#include "rom/rom.h"
#include "util/sdl_deleter.h"
#include "imgui/imgui.h"

Go to the source code of this file.

Functions

 ABSL_FLAG (std::string, emu_rom, "", "Path to the ROM file to load.")
 
 ABSL_FLAG (bool, emu_no_gui, false, "Disable GUI and run in headless mode.")
 
 ABSL_FLAG (std::string, emu_load_state, "", "Load emulator state from a file.")
 
 ABSL_FLAG (std::string, emu_dump_state, "", "Dump emulator state to a file.")
 
 ABSL_FLAG (int, emu_frames, 0, "Number of frames to run the emulator for.")
 
 ABSL_FLAG (int, emu_max_frames, 180, "Maximum frames to run before auto-exit (0=infinite, default=180/3 " "seconds).")
 
 ABSL_FLAG (bool, emu_debug_apu, false, "Enable detailed APU/SPC700 logging.")
 
 ABSL_FLAG (bool, emu_debug_cpu, false, "Enable detailed CPU execution logging.")
 
 ABSL_FLAG (bool, emu_fix_red_tint, true, "Fix red/blue channel swap (BGR->RGB).")
 
int main (int argc, char **argv)
 

Function Documentation

◆ ABSL_FLAG() [1/9]

ABSL_FLAG ( std::string ,
emu_rom ,
"" ,
"Path to the ROM file to load."  )

◆ ABSL_FLAG() [2/9]

ABSL_FLAG ( bool ,
emu_no_gui ,
false ,
"Disable GUI and run in headless mode."  )

◆ ABSL_FLAG() [3/9]

ABSL_FLAG ( std::string ,
emu_load_state ,
"" ,
"Load emulator state from a file."  )

◆ ABSL_FLAG() [4/9]

ABSL_FLAG ( std::string ,
emu_dump_state ,
"" ,
"Dump emulator state to a file."  )

◆ ABSL_FLAG() [5/9]

ABSL_FLAG ( int ,
emu_frames ,
0 ,
"Number of frames to run the emulator for."  )

◆ ABSL_FLAG() [6/9]

ABSL_FLAG ( int ,
emu_max_frames ,
180 ,
"Maximum frames to run before auto-exit (0=infinite, default=180/3 " "seconds)."  )

◆ ABSL_FLAG() [7/9]

ABSL_FLAG ( bool ,
emu_debug_apu ,
false ,
"Enable detailed APU/SPC700 logging."  )

◆ ABSL_FLAG() [8/9]

ABSL_FLAG ( bool ,
emu_debug_cpu ,
false ,
"Enable detailed CPU execution logging."  )

◆ ABSL_FLAG() [9/9]

ABSL_FLAG ( bool ,
emu_fix_red_tint ,
true ,
"Fix red/blue channel swap (BGR->RGB)."  )

◆ main()

int main ( int argc,
char ** argv )
Todo
Use factory or detect backend
Todo
Use proper aspect ratio handling

Definition at line 39 of file emu.cc.