Merge pull request #225 from shadps4-emu/stabilization/10

Various fixes and improvements
This commit is contained in:
georgemoralis 2024-07-01 13:09:11 +03:00 committed by GitHub
commit 1f83824a8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 220 additions and 38 deletions

View file

@ -42,10 +42,6 @@ Emulator::Emulator() : window{WindowWidth, WindowHeight, controller} {
// Start logger.
Common::Log::Initialize();
Common::Log::Start();
// Initialize kernel and library facilities.
Libraries::Kernel::init_pthreads();
Libraries::InitHLELibs(&linker->GetHLESymbols());
}
Emulator::~Emulator() {
@ -93,6 +89,10 @@ void Emulator::Run(const std::filesystem::path& file) {
const auto& mount_temp_dir = Common::FS::GetUserPath(Common::FS::PathType::TempDataDir) / id;
mnt->Mount(mount_temp_dir, "/temp0"); // called in app_content ==> stat/mkdir
// Initialize kernel and library facilities.
Libraries::Kernel::init_pthreads();
Libraries::InitHLELibs(&linker->GetHLESymbols());
// Load the module with the linker
linker->LoadModule(file);