Skip to content

Commit

Permalink
Fix P4G offsets for JPN+ASA
Browse files Browse the repository at this point in the history
* yeah, I can't do simple math

Signed-off-by: Michal Chvila <miso.chvila@gmail.com>
  • Loading branch information
Electry committed Aug 10, 2018
1 parent beb9ded commit c236448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ int module_start(SceSize argc, const void *args) {
patched = 1;
}
else if (strncmp(titleid, "PCSG00563", 9) == 0) { // Persona 4 Golden [JPN] - 544p
injectData(info.modid, 1, 0xDBDA0, &width_float, sizeof(width_float));
injectData(info.modid, 1, 0xDBDA4, &height_float, sizeof(height_float));
injectData(info.modid, 1, 0xDBD9C, &width_float, sizeof(width_float));
injectData(info.modid, 1, 0xDBDA0, &height_float, sizeof(height_float));
patched = 1;
}
else if (strncmp(titleid, "PCSH00021", 9) == 0) { // Persona 4 Golden [ASA] - 544p
injectData(info.modid, 1, 0xF1C54, &width_float, sizeof(width_float));
injectData(info.modid, 1, 0xF1C58, &height_float, sizeof(height_float));
injectData(info.modid, 1, 0xF1C50, &width_float, sizeof(width_float));
injectData(info.modid, 1, 0xF1C54, &height_float, sizeof(height_float));
patched = 1;
}

Expand Down

0 comments on commit c236448

Please sign in to comment.