mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-25 20:36:54 +01:00
@@ -17,6 +17,7 @@
|
||||
#include "kernel/memory.h"
|
||||
#include "kernel/pthread.h"
|
||||
#include "loader/elf.h"
|
||||
#include "loader/gamePatch.h"
|
||||
#include "loader/jit.h"
|
||||
#include "loader/symbolDatabase.h"
|
||||
#include "loader/x64InstructionEmulator.h"
|
||||
@@ -1326,7 +1327,7 @@ void RuntimeLinker::SaveProgram(Program* program, const std::filesystem::path& e
|
||||
}
|
||||
}
|
||||
|
||||
void RuntimeLinker::Execute() {
|
||||
void RuntimeLinker::Execute(const std::filesystem::path& game_patch) {
|
||||
KYTY_PROFILER_THREAD("Thread_Main");
|
||||
|
||||
Libs::LibKernel::PthreadInitSelfForMainThread();
|
||||
@@ -1346,6 +1347,9 @@ void RuntimeLinker::Execute() {
|
||||
|
||||
PreloadAdjacentPrograms();
|
||||
RelocateAll();
|
||||
if (!game_patch.empty()) {
|
||||
GamePatch::Apply(game_patch, m_programs.empty() ? nullptr : m_programs.front());
|
||||
}
|
||||
StartAllModules();
|
||||
|
||||
LOGF_COLOR(Log::Color::BrightYellow, "---\n--- Execute: %s\n---\n", "Main");
|
||||
|
||||
Reference in New Issue
Block a user