Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add P4G (EU, US, JP) patches #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# vitaRescale
Resolution changer plugin for PSVITA games.
Plugin develloped by Rinnegatamante in order to change resolution of PS Vita Games.

## Fork Roadmap :
- [ ] Add support of more games.
14 changes: 13 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ int module_start(SceSize argc, const void *args) {
patchPlainResolution(1, 0x53E0, w3d, h3d); // 3D Rendering
patchPlainResolution(1, 0x54A8, wfb, hfb); // SetFrameBuf params
patchPlainResolution(0, 0x1E7538, wfb, hfb); // ? (960x544 on retail game)
}else if (strncmp(titleid, "PCSB00245", 9) == 0){ // Persona 4 Golden (EU)
patchPlainResolution(1, 0xDBCFC, wfb, hfb);
w3d = wfb;
h3d = hfb;
}else if (strncmp(titleid, "PCSE00120", 9) == 0){ // Persona 4 Golden (US)
patchPlainResolution(1, 0xDBCEC, wfb, hfb);
w3d = wfb;
h3d = hfb;
}else if (strncmp(titleid, "PCSG00563", 9) == 0){ // Persona 4 Golden (JP)
patchPlainResolution(1, 0xDBD9C, wfb, hfb);
w3d = wfb;
h3d = hfb;
}else if (strncmp(titleid, "PCSB00861", 9) == 0){ // Digimon Story: Cybersleuth (EU)
patchPlainResolution(1, 0x77CC, wfb, hfb); // Full Rendering
w3d = wfb;
Expand All @@ -101,4 +113,4 @@ int module_stop(SceSize argc, const void *args) {
}

return SCE_KERNEL_STOP_SUCCESS;
}
}