Skip to content

Commit c873b20

Browse files
committed
8.xx support with old plugin
1 parent 99ca85c commit c873b20

File tree

4 files changed

+113
-291
lines changed

4 files changed

+113
-291
lines changed

Plugin_samples/itemzflow_xml_patches/source/game_patch_thread.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ bool Get_Running_App_TID(String &title_id, int &BigAppid) {
300300
}
301301

302302
#include "game_patch_xml.hpp"
303+
303304
void *GamePatch_Thread(void *unused) {
304305
(void)unused;
305306
printf_notification("XML Patch thread running.\nBuilt: " __DATE__
@@ -311,12 +312,6 @@ void *GamePatch_Thread(void *unused) {
311312
while (g_game_patch_thread_running) {
312313
String tid;
313314
int appid = 0;
314-
if(!if_exists("/system_tmp/app_launched")){
315-
usleep(500);
316-
g_foundApp = false;
317-
continue;
318-
}
319-
unlink("/system_tmp/app_launched");
320315
if (!Get_Running_App_TID(tid, appid)) {
321316
if (g_foundApp)
322317
cheat_log("app is no longer running");
@@ -355,7 +350,7 @@ for (auto p: dbg::getProcesses()) {
355350
cheat_log("sceKernelGetProcessName failed for %s (%d)", tid.c_str(), app_pid);
356351
continue;
357352
}
358-
// cheat_log("Found %s (%d)", proc_name, app_pid);
353+
cheat_log("Found %s (%d)", proc_name, app_pid);
359354

360355
break;
361356
}
@@ -396,7 +391,7 @@ for (auto p: dbg::getProcesses()) {
396391
g_foundApp = true;
397392
}
398393
cheat_log("suspending app %s", g_title_id);
399-
// SuspendApp(app_pid);
394+
SuspendApp(app_pid);
400395
cheat_log("app %s suspended", g_title_id);
401396
// check xml database
402397
GamePatchInfo GameInfo{};

0 commit comments

Comments
 (0)