diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index 689ef0d454..3b541990cb 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -982,12 +982,12 @@ std::shared_ptr ppu_load_prx(const ppu_prx_object& elf, const std::stri } // Apply the patch - auto applied = fxm::check_unlocked()->apply(hash, vm::g_base_addr); + auto applied = g_fxo->get()->apply(hash, vm::g_base_addr); if (!Emu.GetTitleID().empty()) { // Alternative patch - applied += fxm::check_unlocked()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr); + applied += g_fxo->get()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr); } LOG_NOTICE(LOADER, "PRX library hash: %s (<- %u)", hash, applied); @@ -1135,12 +1135,12 @@ void ppu_load_exec(const ppu_exec_object& elf) } // Apply the patch - auto applied = fxm::check_unlocked()->apply(hash, vm::g_base_addr); + auto applied = g_fxo->get()->apply(hash, vm::g_base_addr); if (!Emu.GetTitleID().empty()) { // Alternative patch - applied += fxm::check_unlocked()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr); + applied += g_fxo->get()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr); } LOG_NOTICE(LOADER, "PPU executable hash: %s (<- %u)", hash, applied); @@ -1606,12 +1606,12 @@ std::shared_ptr ppu_load_overlay(const ppu_exec_object& elf, const } // Apply the patch - auto applied = fxm::check_unlocked()->apply(hash, vm::g_base_addr); + auto applied = g_fxo->get()->apply(hash, vm::g_base_addr); if (!Emu.GetTitleID().empty()) { // Alternative patch - applied += fxm::check_unlocked()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr); + applied += g_fxo->get()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr); } LOG_NOTICE(LOADER, "OVL executable hash: %s (<- %u)", hash, applied); diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.cpp b/rpcs3/Emu/Cell/lv2/sys_spu.cpp index 6769b4146c..1cfcfc37da 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_spu.cpp @@ -130,12 +130,12 @@ void sys_spu_image::deploy(u32 loc, sys_spu_segment* segs, u32 nsegs) } // Apply the patch - auto applied = fxm::check_unlocked()->apply(hash, vm::_ptr(loc)); + auto applied = g_fxo->get()->apply(hash, vm::_ptr(loc)); if (!Emu.GetTitleID().empty()) { // Alternative patch - applied += fxm::check_unlocked()->apply(Emu.GetTitleID() + '-' + hash, vm::_ptr(loc)); + applied += g_fxo->get()->apply(Emu.GetTitleID() + '-' + hash, vm::_ptr(loc)); } LOG_NOTICE(LOADER, "Loaded SPU image: %s (<- %u)%s", hash, applied, dump); diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 3cdcd126bf..4e9f8d9b44 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -365,7 +365,7 @@ void Emulator::Init() #endif // Initialize patch engine - fxm::make_always()->append(fs::get_config_dir() + "/patch.yml"); + g_fxo->init()->append(fs::get_config_dir() + "/patch.yml"); // Initialize progress dialog server (TODO) if (g_progr.exchange("") == nullptr) @@ -999,7 +999,7 @@ void Emulator::Load(const std::string& title_id, bool add_only, bool force_globa } // Load patches from different locations - fxm::check_unlocked()->append(fs::get_config_dir() + "data/" + m_title_id + "/patch.yml"); + g_fxo->get()->append(fs::get_config_dir() + "data/" + m_title_id + "/patch.yml"); // Mount all devices const std::string emu_dir = GetEmuDir();