Simple IPC for external control (#3345)

* add simple IPC protocol

to allow communication via stdin/stdout

* ipc: add PATCH_MEMORY command

enables patches & cheates
This commit is contained in:
Vinicius Rangel
2025-08-04 20:32:50 -03:00
committed by GitHub
parent 77410fd228
commit 0044a27c1f
7 changed files with 179 additions and 11 deletions

View File

@@ -18,6 +18,7 @@
#include "core/linker.h"
#include "core/memory.h"
#include "core/tls.h"
#include "ipc/ipc.h"
namespace Core {
@@ -115,6 +116,10 @@ void Linker::Execute(const std::vector<std::string> args) {
main_thread.Run([this, module, args](std::stop_token) {
Common::SetCurrentThreadName("GAME_MainThread");
if (auto& ipc = IPC::Instance()) {
ipc.WaitForStart();
}
LoadSharedLibraries();
// Simulate libSceGnmDriver initialization, which maps a chunk of direct memory.