diff --git a/.github/README.md b/.github/README.md index b59dd2b..a0955f4 100644 --- a/.github/README.md +++ b/.github/README.md @@ -46,10 +46,16 @@ App patching system for PS4/PS5. - Extract and upload [patch1.zip](https://github.com/illusionyy/PS-Game-Patch/releases/latest) xml files to `/data/user/patches` - `xml_orbis` for PS4 Game Patches - `xml_prospero` for PS5 Game Patches -- On PS5, Open options menu and select "Keep in Home" to keep this icon on the home screen. If you forget, uninstall the shortcut and re-send payload to add the shortcut back. +- On PS5, in Media Tab, Open options menu and select "Keep in Home" to keep this icon on the home screen. If you forget, uninstall the shortcut and re-send payload to add the shortcut back. - Open webpage at `http://127.0.0.1:23900` or console IP on another device. - Apply patches and they should work! +## Troubleshooting + +- If you encounter issues, try the following: +- Games don't start and eventually shutdown at splash screen + - Using FTP, delete cache files at `/data/user/patch_backup`, restart system and send payload again. + ### Confirmed working firmwares: - PS4: - 9.00 - 12.52 diff --git a/shared/memory.c b/shared/memory.c index 8096486..9b001c1 100644 --- a/shared/memory.c +++ b/shared/memory.c @@ -17,6 +17,9 @@ #include "memory.h" #define BACKUP_VER 22761 // not random nya, 22761 does mean something. +#define UPDATE_NUM (128 * 1024) // base num +#define UPDATE_VER (UPDATE_NUM + 1) // version num, change to invalidate cache + int sceKernelUsleep(int); uintptr_t pid_chunk_scan_data(const int pid, const uintptr_t mem_start, const uintptr_t mem_sz, const void* data, const size_t data_sz, const size_t pattern_offset) @@ -218,7 +221,7 @@ void gen_backup_path(const char* file, const char* pattn, const size_t pattn_off static StringId bn = 0xff; bn = bn != 0xff ?: stringid_l("BACKUP_VER: " dstr(BACKUP_VER), -1); const StringId fn = stringid_l(pattn, -1) ^ stringid_l(file, -1) ^ bn; - snprintf(buf, len, BACKUP_DATA_PATCH_PATH "/fw_0x%08x_0x%08x_v%d.bin", fw, fn, BACKUP_VER); + snprintf(buf, len, BACKUP_DATA_PATCH_PATH "/fw_0x%08x_0x%08x_v%d_u%d.bin", fw, fn, BACKUP_VER, UPDATE_VER); } }