Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion shared/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
}
}

Expand Down