Skip to content

Commit

Permalink
games: Add Sly Cooper and the Thievius Raccoonus [USA] framebuffer + …
Browse files Browse the repository at this point in the history
…FPS cap patch

Signed-off-by: Michal Chvila <miso.chvila@gmail.com>
  • Loading branch information
Electry committed Sep 1, 2018
1 parent 4a6888c commit 31b72de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ NOTE: If some options are left out, the plugin will use their default values (fo
| MXGP: The Official Motocross Videogame | PCSB00470 <br/> PCSE00530 | Internal res. | 704x448 | 960x544 | |
| Persona 4 Golden | PCSB00245 <br/> PCSE00120 <br/> PCSG00004 <br/> PCSG00563 <br/> PCSH00021 | Internal res. | 840x476 | 960x544 | |
| Ridge Racer | PCSB00048 <br/> PCSE00001 <br/> PCSG00001 | Internal res. | 720x408 | 960x544 | |
| Sly Cooper and the Thievius Raccoonus | PCSA00096 | Framebuffer <br/> FPS cap | 720x408 <br/> 30 | 960x544 <br/> 60 | |
| The Amazing Spider-Man | PCSB00428 | Internal res. <br/> FPS cap | 704x400 <br/> 60 | OFF <br/> OFF | Only few resolutions work properly (704x400, 480x272 known working). 960x544 causes GPU crash |
| Utawarerumono: Mask of Deception / Itsuwari no Kamen | PCSB01093 <br/> PCSE00959 <br/> PCSG00617 | Internal res. | 672x384 | 960x544 | |
| Utawarerumono: Mask of Truth / Futari no Hakuoro | PCSB01145 <br/> PCSE01102 <br/> PCSG00838 | Internal res. | 672x384 | 960x544 | |
Expand Down
21 changes: 21 additions & 0 deletions games.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,27 @@ uint8_t patch_game(const char *titleid, tai_module_info_t *eboot_info, VG_Config

return 1;
}
else if (!strncmp(titleid, "PCSA00096", 9)) { // Sly Cooper and the Thievius Raccoonus [USA]
config_set_unsupported(FT_ENABLED, FT_UNSUPPORTED, FT_ENABLED, config);
config_set_default(FT_ENABLED, FT_DISABLED, FT_ENABLED, config);

if (config_is_fb_enabled(config)) {
uint8_t movs_r1_width[4], movs_r1_height[4];
make_thumb2_t2_mov(1, 1, config->fb_width, movs_r1_width);
make_thumb2_t2_mov(1, 1, config->fb_height, movs_r1_height);

injectData(eboot_info->modid, 0, 0xE0AF8, &movs_r1_width, sizeof(movs_r1_width));
injectData(eboot_info->modid, 0, 0xE0AF8 + 0x6, &movs_r1_height, sizeof(movs_r1_height));
}
if (config_is_fps_enabled(config)) {
uint8_t movs_r0_vblank[2];
make_thumb_t1_mov(0, config->fps == FPS_60 ? 0x1 : 0x2, movs_r0_vblank);

injectData(eboot_info->modid, 0, 0x10C104, &movs_r0_vblank, sizeof(movs_r0_vblank));
}

return 1;
}

return 0;
}

0 comments on commit 31b72de

Please sign in to comment.