diff options
| author | 2014-05-17 11:59:18 -0400 | |
|---|---|---|
| committer | 2014-05-17 11:59:18 -0400 | |
| commit | 265c770a9d663b96a9a422201bac3dd454fa95c0 (patch) | |
| tree | e7a1682450b857d80cc2ed0f863f4a82b81142bd /src/citra/citra.cpp | |
| parent | Merge pull request #17 from bunnei/arm-vfp (diff) | |
| download | yuzu-265c770a9d663b96a9a422201bac3dd454fa95c0.tar.gz yuzu-265c770a9d663b96a9a422201bac3dd454fa95c0.tar.xz yuzu-265c770a9d663b96a9a422201bac3dd454fa95c0.zip | |
updated how we call ARM core to make things much faster
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 | } |