mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-19 09:54:54 +00:00
Enable patches on cli builds (#897)
* patch support for cli * fix mac build * format
This commit is contained in:
parent
de183d3b80
commit
ab201398b2
8 changed files with 164 additions and 50 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue