usbloadergx/source/patches/gamepatches.h

39 lines
1.3 KiB
C
Raw Normal View History

#ifndef GAMEPATCHES_H_
#define GAMEPATCHES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <gccore.h>
void RegisterDOL(u8 *dst, int len);
void ClearDOLList();
* Improved GameCube controller functions (patch by Dynamit) R+Z=Screenshot, X=Gameinfo window, Y=Covers download * Added Classic Controller and GameCube Controller support in GameInfo window: Right stick=3D Cover movement, X=Flip 3DCover 180°, L/R=Zoom * Added Wifi6 and wifi10 pictures for GameInfo window. (Thanks OriginalHamster) * Added device priority selection for GameCube listing in global Loader settings (SD->USB, or USB->SD) * Added a "Use global" language setting for Gamecube games. * Added support for USB devices with modified MBR's signature to prevent WiiU's format message. * Prevent Rockband cursor display on GameCube and WiiWare games with "band" in the title (Crach bandicoot, Beach Bandits, etc.) * Added Dol's Video mode patcher in Loader/Game settings, for games which couldn't be forced. (MadWorld, MotoGP08, Mario Party 8, etc.) ♦ Region patch = Patches the dol's known video modes to the region selected in "Video mode" setting, but keep interlace/progressive references. ♦ ON = Patch all dol's known video modes to the one selected in "Video mode" setting. ♦ ALL = Patch all dol's found video mode patterns (even unknown video modes) to the one selected in "Video mode" setting. * DML: Updated DM(L) version detection up to v2.10 * DML: Automatically enable PADHook if Screenshot setting is enabled * DML: Fixed a bug where multiple video modes could be set at the same time * DEVO: Added a prompt if trying to launch a game from a non FAT32 partition. * DEVO: Added Direct Mapping Buttons setting (Devo r200+) * DEVO: Added support for Language setting * Language files updated: Chinese, French
2013-08-18 16:30:39 +02:00
void gamepatches(u8 videoSelected, u8 videoPatchDol, u8 aspectForce, u8 languageChoice, u8 patchcountrystring,
u8 vipatch, u8 deflicker, u8 sneekVideoPatch, u8 hooktype, u8 videoWidth, u64 returnTo, u8 privateServer, const char *serverAddr);
2021-08-01 19:00:21 +02:00
void anti_002_fix(u8 *addr, u32 len);
void deflicker_patch(u8 *addr, u32 len);
void patch_vfilters(u8 *addr, u32 len, u8 *vfilter);
2023-01-01 18:00:25 +01:00
void patch_vfilters_rogue(u8 *addr, u32 len, u8 *vfilter);
void patch_width(u8 *addr, u32 len);
void PrivateServerPatcher(void *addr, u32 len, u8 privateServer, const char *serverAddr);
2019-08-26 19:53:21 +02:00
void PatchFix480p();
2020-12-12 22:35:12 +01:00
s8 do_new_wiimmfi();
2021-03-15 18:55:52 +01:00
s8 do_new_wiimmfi_nonMKWii(void *addr, u32 len);
void domainpatcher(void *addr, u32 len, const char *domain);
2023-01-01 18:00:25 +01:00
bool patch_nsmb(u8 *gameid);
bool patch_pop(u8 *gameid);
void patch_error_codes(u8 *gameid);
2021-03-15 18:55:52 +01:00
void VideoModePatcher(u8 *dst, int len, u8 videoSelected, u8 VideoPatchDol);
void sneek_video_patch(void *addr, u32 len);
2010-09-24 02:48:03 +02:00
bool PatchReturnTo(void *Address, int Size, u32 id);
int PatchNewReturnTo(int es_fd, u64 title);
2023-01-01 18:00:25 +01:00
int BlockIOSReload(int es_fd, u32 gameIOS);
void PatchAspectRatio(void *addr, u32 len, u8 aspect);
#ifdef __cplusplus
}
#endif
#endif