diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index ee4af4dcc..9e2229d02 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -55,7 +55,7 @@ System::ResultStatus System::RunLoop(bool tight_loop) { | |||
| 55 | // If we don't have a currently active thread then don't execute instructions, | 55 | // If we don't have a currently active thread then don't execute instructions, |
| 56 | // instead advance to the next event and try to yield to the next thread | 56 | // instead advance to the next event and try to yield to the next thread |
| 57 | if (Kernel::GetCurrentThread() == nullptr) { | 57 | if (Kernel::GetCurrentThread() == nullptr) { |
| 58 | LOG_TRACE(Core_ARM, "Idling"); | 58 | NGLOG_TRACE(Core_ARM, "Idling"); |
| 59 | CoreTiming::Idle(); | 59 | CoreTiming::Idle(); |
| 60 | CoreTiming::Advance(); | 60 | CoreTiming::Advance(); |
| 61 | PrepareReschedule(); | 61 | PrepareReschedule(); |
| @@ -82,15 +82,15 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file | |||
| 82 | app_loader = Loader::GetLoader(filepath); | 82 | app_loader = Loader::GetLoader(filepath); |
| 83 | 83 | ||
| 84 | if (!app_loader) { | 84 | if (!app_loader) { |
| 85 | LOG_CRITICAL(Core, "Failed to obtain loader for %s!", filepath.c_str()); | 85 | NGLOG_CRITICAL(Core, "Failed to obtain loader for {}!", filepath); |
| 86 | return ResultStatus::ErrorGetLoader; | 86 | return ResultStatus::ErrorGetLoader; |
| 87 | } | 87 | } |
| 88 | std::pair<boost::optional<u32>, Loader::ResultStatus> system_mode = | 88 | std::pair<boost::optional<u32>, Loader::ResultStatus> system_mode = |
| 89 | app_loader->LoadKernelSystemMode(); | 89 | app_loader->LoadKernelSystemMode(); |
| 90 | 90 | ||
| 91 | if (system_mode.second != Loader::ResultStatus::Success) { | 91 | if (system_mode.second != Loader::ResultStatus::Success) { |
| 92 | LOG_CRITICAL(Core, "Failed to determine system mode (Error %i)!", | 92 | NGLOG_CRITICAL(Core, "Failed to determine system mode (Error {})!", |
| 93 | static_cast<int>(system_mode.second)); | 93 | static_cast<int>(system_mode.second)); |
| 94 | 94 | ||
| 95 | switch (system_mode.second) { | 95 | switch (system_mode.second) { |
| 96 | case Loader::ResultStatus::ErrorEncrypted: | 96 | case Loader::ResultStatus::ErrorEncrypted: |
| @@ -106,15 +106,15 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file | |||
| 106 | 106 | ||
| 107 | ResultStatus init_result{Init(emu_window, system_mode.first.get())}; | 107 | ResultStatus init_result{Init(emu_window, system_mode.first.get())}; |
| 108 | if (init_result != ResultStatus::Success) { | 108 | if (init_result != ResultStatus::Success) { |
| 109 | LOG_CRITICAL(Core, "Failed to initialize system (Error %i)!", | 109 | NGLOG_CRITICAL(Core, "Failed to initialize system (Error {})!", |
| 110 | static_cast<int>(init_result)); | 110 | static_cast<int>(init_result)); |
| 111 | System::Shutdown(); | 111 | System::Shutdown(); |
| 112 | return init_result; | 112 | return init_result; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | const Loader::ResultStatus load_result{app_loader->Load(current_process)}; | 115 | const Loader::ResultStatus load_result{app_loader->Load(current_process)}; |
| 116 | if (Loader::ResultStatus::Success != load_result) { | 116 | if (Loader::ResultStatus::Success != load_result) { |
| 117 | LOG_CRITICAL(Core, "Failed to load ROM (Error %i)!", static_cast<int>(load_result)); | 117 | NGLOG_CRITICAL(Core, "Failed to load ROM (Error {})!", static_cast<int>(load_result)); |
| 118 | System::Shutdown(); | 118 | System::Shutdown(); |
| 119 | 119 | ||
| 120 | switch (load_result) { | 120 | switch (load_result) { |
| @@ -151,7 +151,7 @@ void System::Reschedule() { | |||
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { | 153 | System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { |
| 154 | LOG_DEBUG(HW_Memory, "initialized OK"); | 154 | NGLOG_DEBUG(HW_Memory, "initialized OK"); |
| 155 | 155 | ||
| 156 | CoreTiming::Init(); | 156 | CoreTiming::Init(); |
| 157 | 157 | ||
| @@ -162,7 +162,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { | |||
| 162 | cpu_core = std::make_shared<ARM_Dynarmic>(); | 162 | cpu_core = std::make_shared<ARM_Dynarmic>(); |
| 163 | #else | 163 | #else |
| 164 | cpu_core = std::make_shared<ARM_Unicorn>(); | 164 | cpu_core = std::make_shared<ARM_Unicorn>(); |
| 165 | LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); | 165 | NGLOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); |
| 166 | #endif | 166 | #endif |
| 167 | } else { | 167 | } else { |
| 168 | cpu_core = std::make_shared<ARM_Unicorn>(); | 168 | cpu_core = std::make_shared<ARM_Unicorn>(); |
| @@ -184,7 +184,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { | |||
| 184 | return ResultStatus::ErrorVideoCore; | 184 | return ResultStatus::ErrorVideoCore; |
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | LOG_DEBUG(Core, "Initialized OK"); | 187 | NGLOG_DEBUG(Core, "Initialized OK"); |
| 188 | 188 | ||
| 189 | // Reset counters and set time origin to current frame | 189 | // Reset counters and set time origin to current frame |
| 190 | GetAndResetPerfStats(); | 190 | GetAndResetPerfStats(); |
| @@ -218,7 +218,7 @@ void System::Shutdown() { | |||
| 218 | 218 | ||
| 219 | app_loader.reset(); | 219 | app_loader.reset(); |
| 220 | 220 | ||
| 221 | LOG_DEBUG(Core, "Shutdown OK"); | 221 | NGLOG_DEBUG(Core, "Shutdown OK"); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | Service::SM::ServiceManager& System::ServiceManager() { | 224 | Service::SM::ServiceManager& System::ServiceManager() { |