diff options
author | Subv <subv2112@gmail.com> | 2017-09-27 01:17:47 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-09-27 01:17:47 +0200 |
commit | 7f48aa8d2580da6b3b83a389e31804e493aba69f (patch) | |
tree | 287b04f23f2d195f123fd15dca68d6a1cebf945c /src/core/core.cpp | |
parent | Kernel/Thread: Allow specifying which process a thread belongs to when creating it. (diff) | |
download | yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.tar yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.tar.gz yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.tar.bz2 yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.tar.lz yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.tar.xz yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.tar.zst yuzu-7f48aa8d2580da6b3b83a389e31804e493aba69f.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 59b8768e7..0c7a72987 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -13,6 +13,7 @@ #include "core/core_timing.h" #include "core/gdbstub/gdbstub.h" #include "core/hle/kernel/kernel.h" +#include "core/hle/kernel/process.h" #include "core/hle/kernel/thread.h" #include "core/hle/service/service.h" #include "core/hw/hw.h" @@ -100,7 +101,7 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file return init_result; } - const Loader::ResultStatus load_result{app_loader->Load()}; + const Loader::ResultStatus load_result{app_loader->Load(Kernel::g_current_process)}; if (Loader::ResultStatus::Success != load_result) { LOG_CRITICAL(Core, "Failed to load ROM (Error %i)!", load_result); System::Shutdown(); @@ -114,6 +115,7 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file return ResultStatus::ErrorLoader; } } + Memory::SetCurrentPageTable(&Kernel::g_current_process->vm_manager.page_table); status = ResultStatus::Success; return status; } @@ -196,4 +198,4 @@ void System::Shutdown() { LOG_DEBUG(Core, "Shutdown OK"); } -} // namespace +} // namespace Core |