summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 47292cd78..fb9b25d12 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -186,7 +186,7 @@ struct System::Impl {
186 void Run() { 186 void Run() {
187 std::unique_lock<std::mutex> lk(suspend_guard); 187 std::unique_lock<std::mutex> lk(suspend_guard);
188 188
189 kernel.Suspend(false); 189 kernel.SuspendApplication(false);
190 core_timing.SyncPause(false); 190 core_timing.SyncPause(false);
191 is_paused.store(false, std::memory_order_relaxed); 191 is_paused.store(false, std::memory_order_relaxed);
192 } 192 }
@@ -195,7 +195,7 @@ struct System::Impl {
195 std::unique_lock<std::mutex> lk(suspend_guard); 195 std::unique_lock<std::mutex> lk(suspend_guard);
196 196
197 core_timing.SyncPause(true); 197 core_timing.SyncPause(true);
198 kernel.Suspend(true); 198 kernel.SuspendApplication(true);
199 is_paused.store(true, std::memory_order_relaxed); 199 is_paused.store(true, std::memory_order_relaxed);
200 } 200 }
201 201
@@ -203,17 +203,17 @@ struct System::Impl {
203 return is_paused.load(std::memory_order_relaxed); 203 return is_paused.load(std::memory_order_relaxed);
204 } 204 }
205 205
206 std::unique_lock<std::mutex> StallProcesses() { 206 std::unique_lock<std::mutex> StallApplication() {
207 std::unique_lock<std::mutex> lk(suspend_guard); 207 std::unique_lock<std::mutex> lk(suspend_guard);
208 kernel.Suspend(true); 208 kernel.SuspendApplication(true);
209 core_timing.SyncPause(true); 209 core_timing.SyncPause(true);
210 return lk; 210 return lk;
211 } 211 }
212 212
213 void UnstallProcesses() { 213 void UnstallApplication() {
214 if (!IsPaused()) { 214 if (!IsPaused()) {
215 core_timing.SyncPause(false); 215 core_timing.SyncPause(false);
216 kernel.Suspend(false); 216 kernel.SuspendApplication(false);
217 } 217 }
218 } 218 }
219 219
@@ -221,7 +221,7 @@ struct System::Impl {
221 debugger = std::make_unique<Debugger>(system, port); 221 debugger = std::make_unique<Debugger>(system, port);
222 } 222 }
223 223
224 SystemResultStatus SetupForMainProcess(System& system, Frontend::EmuWindow& emu_window) { 224 SystemResultStatus SetupForApplicationProcess(System& system, Frontend::EmuWindow& emu_window) {
225 LOG_DEBUG(Core, "initialized OK"); 225 LOG_DEBUG(Core, "initialized OK");
226 226
227 // Setting changes may require a full system reinitialization (e.g., disabling multicore). 227 // Setting changes may require a full system reinitialization (e.g., disabling multicore).
@@ -273,7 +273,7 @@ struct System::Impl {
273 return SystemResultStatus::ErrorGetLoader; 273 return SystemResultStatus::ErrorGetLoader;
274 } 274 }
275 275
276 SystemResultStatus init_result{SetupForMainProcess(system, emu_window)}; 276 SystemResultStatus init_result{SetupForApplicationProcess(system, emu_window)};
277 if (init_result != SystemResultStatus::Success) { 277 if (init_result != SystemResultStatus::Success) {
278 LOG_CRITICAL(Core, "Failed to initialize system (Error {})!", 278 LOG_CRITICAL(Core, "Failed to initialize system (Error {})!",
279 static_cast<int>(init_result)); 279 static_cast<int>(init_result));
@@ -302,7 +302,7 @@ struct System::Impl {
302 static_cast<u32>(SystemResultStatus::ErrorLoader) + static_cast<u32>(load_result)); 302 static_cast<u32>(SystemResultStatus::ErrorLoader) + static_cast<u32>(load_result));
303 } 303 }
304 AddGlueRegistrationForProcess(*app_loader, *main_process); 304 AddGlueRegistrationForProcess(*app_loader, *main_process);
305 kernel.MakeCurrentProcess(main_process); 305 kernel.MakeApplicationProcess(main_process);
306 kernel.InitializeCores(); 306 kernel.InitializeCores();
307 307
308 // Initialize cheat engine 308 // Initialize cheat engine
@@ -585,12 +585,12 @@ void System::DetachDebugger() {
585 } 585 }
586} 586}
587 587
588std::unique_lock<std::mutex> System::StallProcesses() { 588std::unique_lock<std::mutex> System::StallApplication() {
589 return impl->StallProcesses(); 589 return impl->StallApplication();
590} 590}
591 591
592void System::UnstallProcesses() { 592void System::UnstallApplication() {
593 impl->UnstallProcesses(); 593 impl->UnstallApplication();
594} 594}
595 595
596void System::InitializeDebugger() { 596void System::InitializeDebugger() {
@@ -648,8 +648,8 @@ const Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() const {
648 return impl->kernel.GlobalSchedulerContext(); 648 return impl->kernel.GlobalSchedulerContext();
649} 649}
650 650
651Kernel::KProcess* System::CurrentProcess() { 651Kernel::KProcess* System::ApplicationProcess() {
652 return impl->kernel.CurrentProcess(); 652 return impl->kernel.ApplicationProcess();
653} 653}
654 654
655Core::DeviceMemory& System::DeviceMemory() { 655Core::DeviceMemory& System::DeviceMemory() {
@@ -660,8 +660,8 @@ const Core::DeviceMemory& System::DeviceMemory() const {
660 return *impl->device_memory; 660 return *impl->device_memory;
661} 661}
662 662
663const Kernel::KProcess* System::CurrentProcess() const { 663const Kernel::KProcess* System::ApplicationProcess() const {
664 return impl->kernel.CurrentProcess(); 664 return impl->kernel.ApplicationProcess();
665} 665}
666 666
667ARM_Interface& System::ArmInterface(std::size_t core_index) { 667ARM_Interface& System::ArmInterface(std::size_t core_index) {
@@ -760,8 +760,8 @@ const Core::SpeedLimiter& System::SpeedLimiter() const {
760 return impl->speed_limiter; 760 return impl->speed_limiter;
761} 761}
762 762
763u64 System::GetCurrentProcessProgramID() const { 763u64 System::GetApplicationProcessProgramID() const {
764 return impl->kernel.CurrentProcess()->GetProgramID(); 764 return impl->kernel.ApplicationProcess()->GetProgramID();
765} 765}
766 766
767Loader::ResultStatus System::GetGameName(std::string& out) const { 767Loader::ResultStatus System::GetGameName(std::string& out) const {
@@ -880,11 +880,11 @@ bool System::GetExitLock() const {
880 return impl->exit_lock; 880 return impl->exit_lock;
881} 881}
882 882
883void System::SetCurrentProcessBuildID(const CurrentBuildProcessID& id) { 883void System::SetApplicationProcessBuildID(const CurrentBuildProcessID& id) {
884 impl->build_id = id; 884 impl->build_id = id;
885} 885}
886 886
887const System::CurrentBuildProcessID& System::GetCurrentProcessBuildID() const { 887const System::CurrentBuildProcessID& System::GetApplicationProcessBuildID() const {
888 return impl->build_id; 888 return impl->build_id;
889} 889}
890 890