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 d55b97393..6f3bc6f84 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -18,26 +18,24 @@ | |||
| 18 | int __cdecl main(int argc, char **argv) { | 18 | int __cdecl main(int argc, char **argv) { |
| 19 | std::string program_dir = File::GetCurrentDir(); | 19 | std::string program_dir = File::GetCurrentDir(); |
| 20 | 20 | ||
| 21 | LogManager::Init(); | 21 | LogManager::Init(); |
| 22 | 22 | ||
| 23 | EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; | 23 | EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; |
| 24 | 24 | ||
| 25 | System::Init(emu_window); | 25 | System::Init(emu_window); |
| 26 | 26 | ||
| 27 | std::string boot_filename = "homebrew.elf"; | 27 | std::string boot_filename = "homebrew.elf"; |
| 28 | std::string error_str; | 28 | std::string error_str; |
| 29 | 29 | ||
| 30 | bool res = Loader::LoadFile(boot_filename, &error_str); | 30 | bool res = Loader::LoadFile(boot_filename, &error_str); |
| 31 | 31 | ||
| 32 | if (!res) { | 32 | if (!res) { |
| 33 | ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str()); | 33 | ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str()); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | for (;;) { | 36 | Core::RunLoop(); |
| 37 | Core::SingleStep(); | ||
| 38 | } | ||
| 39 | 37 | ||
| 40 | delete emu_window; | 38 | delete emu_window; |
| 41 | 39 | ||
| 42 | return 0; | 40 | return 0; |
| 43 | } | 41 | } |