mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +00:00
Enable patches on cli builds (#897)
* patch support for cli * fix mac build * format
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
#include "common/arch.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/logging/log.h"
|
||||
#ifdef ENABLE_QT_GUI
|
||||
#include "qt_gui/memory_patcher.h"
|
||||
#endif
|
||||
#include "common/memory_patcher.h"
|
||||
#include "common/string_util.h"
|
||||
#include "core/aerolib/aerolib.h"
|
||||
#include "core/cpu_patches.h"
|
||||
@@ -199,7 +197,6 @@ void Module::LoadModuleToMemory(u32& max_tls_index) {
|
||||
const VAddr entry_addr = base_virtual_addr + elf.GetElfEntry();
|
||||
LOG_INFO(Core_Linker, "program entry addr ..........: {:#018x}", entry_addr);
|
||||
|
||||
#ifdef ENABLE_QT_GUI
|
||||
if (MemoryPatcher::g_eboot_address == 0) {
|
||||
if (name == "eboot") {
|
||||
MemoryPatcher::g_eboot_address = base_virtual_addr;
|
||||
@@ -207,7 +204,6 @@ void Module::LoadModuleToMemory(u32& max_tls_index) {
|
||||
MemoryPatcher::OnGameLoaded();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Module::LoadDynamicInfo() {
|
||||
|
||||
Reference in New Issue
Block a user