Skip to content

Commit

Permalink
- Bring PAD patching up to current standards.
Browse files Browse the repository at this point in the history
- Add PAD signatures for BS2 NTSC Revision 1.0.
- Add PAD signatures for The Dodger Demo.
- Add PADInit signature for Sega Soccer Slam.
- Add PAD signatures for Killer7 prototypes.
  • Loading branch information
Extrems committed Nov 24, 2019
1 parent 61b2898 commit 84774b6
Show file tree
Hide file tree
Showing 3 changed files with 363 additions and 291 deletions.
2 changes: 1 addition & 1 deletion cube/swiss/include/patcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ int Patch_GameSpecificFile(void *data, u32 length, const char *gameID, const cha
int Patch_GameSpecificRead(void *addr, u32 length, const char* gameID, int dataType);
int Patch_GameSpecificReadAlt(void *data, u32 length, const char *gameID, int dataType);
void Patch_GameSpecificVideo(void *data, u32 length, const char *gameID, int dataType);
void Patch_PADStatus(u32 *data, u32 length, int dataType);
int Patch_PADStatus(u32 *data, u32 length, int dataType);
int PatchDetectLowMemUsage( void *dst, u32 Length, int dataType );
void *Calc_ProperAddress(void *data, int dataType, u32 offsetFoundAt);
void *Calc_Address(void *data, int dataType, u32 properAddress);
Expand Down
4 changes: 2 additions & 2 deletions cube/swiss/source/gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ int patch_gcm(file_handle *file, ExecutableFile *filesToPatch, int numToPatch, i

// Patch IGR
if(swissSettings.igrType != IGR_OFF || swissSettings.invertCStick) {
Patch_PADStatus(buffer, sizeToRead, filesToPatch[i].type);
patched += Patch_PADStatus(buffer, sizeToRead, filesToPatch[i].type);
}

if(swissSettings.debugUSB && usb_isgeckoalive(1) && !swissSettings.wiirdDebug) {
patched += Patch_Fwrite(buffer, sizeToRead);
}
Expand Down
Loading

0 comments on commit 84774b6

Please sign in to comment.