diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 2456d8aa2..5429bcb26 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -26,7 +26,7 @@ namespace Core { | |||
| 26 | /*static*/ System System::s_instance; | 26 | /*static*/ System System::s_instance; |
| 27 | 27 | ||
| 28 | System::ResultStatus System::RunLoop(int tight_loop) { | 28 | System::ResultStatus System::RunLoop(int tight_loop) { |
| 29 | this->status = ResultStatus::Success; | 29 | status = ResultStatus::Success; |
| 30 | if (!cpu_core) { | 30 | if (!cpu_core) { |
| 31 | return ResultStatus::ErrorNotInitialized; | 31 | return ResultStatus::ErrorNotInitialized; |
| 32 | } | 32 | } |
| @@ -60,7 +60,7 @@ System::ResultStatus System::RunLoop(int tight_loop) { | |||
| 60 | HW::Update(); | 60 | HW::Update(); |
| 61 | Reschedule(); | 61 | Reschedule(); |
| 62 | 62 | ||
| 63 | return GetStatus(); | 63 | return status; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | System::ResultStatus System::SingleStep() { | 66 | System::ResultStatus System::SingleStep() { |
| @@ -99,8 +99,8 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file | |||
| 99 | return init_result; | 99 | return init_result; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | Loader::ResultStatus load_result = app_loader->Load(); | 102 | const Loader::ResultStatus load_result{app_loader->Load()}; |
| 103 | if (load_result != Loader::ResultStatus::Success) { | 103 | if (Loader::ResultStatus::Success != load_result) { |
| 104 | LOG_CRITICAL(Core, "Failed to load ROM (Error %i)!", load_result); | 104 | LOG_CRITICAL(Core, "Failed to load ROM (Error %i)!", load_result); |
| 105 | System::Shutdown(); | 105 | System::Shutdown(); |
| 106 | 106 | ||
| @@ -113,9 +113,8 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file | |||
| 113 | return ResultStatus::ErrorLoader; | 113 | return ResultStatus::ErrorLoader; |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | // this->status will be used for errors while actually running the game | ||
| 117 | status = ResultStatus::Success; | 116 | status = ResultStatus::Success; |
| 118 | return ResultStatus::Success; | 117 | return status; |
| 119 | } | 118 | } |
| 120 | 119 | ||
| 121 | void System::PrepareReschedule() { | 120 | void System::PrepareReschedule() { |