diff options
Diffstat (limited to 'src/citra/citra.cpp')
-rw-r--r-- | src/citra/citra.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 80896505f..5a8642d1b 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp @@ -18,11 +18,11 @@ int __cdecl main(int argc, char **argv) { std::string program_dir = File::GetCurrentDir(); - LogManager::Init(); + LogManager::Init(); EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; - System::Init(emu_window); + System::Init(emu_window); std::string boot_filename; @@ -33,18 +33,16 @@ int __cdecl main(int argc, char **argv) { boot_filename = argv[1]; } std::string error_str; - + bool res = Loader::LoadFile(boot_filename, &error_str); if (!res) { ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str()); } - for (;;) { - Core::SingleStep(); - } + Core::RunLoop(); delete emu_window; - return 0; + return 0; } |