usbloadergx/source/patches/gamepatches.h
Cyan 9a78c7a1a9 * Fixed Ocarina download from Geckocodes issue2253 (Thanks Gave92)
* Added a check for downloaded Ocarina content (Thanks Airline38)
* Removed Error #002 setting (Always set to Anti)
2014-05-05 18:35:19 +00:00

29 lines
774 B
C

#ifndef GAMEPATCHES_H_
#define GAMEPATCHES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <gccore.h>
void RegisterDOL(u8 *dst, int len);
void ClearDOLList();
void gamepatches(u8 videoSelected, u8 videoPatchDol, u8 aspectForce, u8 languageChoice, u8 patchcountrystring,
u8 vipatch, u8 sneekVideoPatch, u8 hooktype, u64 returnTo);
bool Anti_002_fix(u8 * Address, int Size);
bool NSMBPatch();
bool PoPPatch();
void VideoModePatcher(u8 * dst, int len, u8 videoSelected, u8 VideoPatchDol);
void sneek_video_patch(void *addr, u32 len);
bool PatchReturnTo(void *Address, int Size, u32 id);
int PatchNewReturnTo(int es_fd, u64 title);
int BlockIOSReload(int es_fd, u8 gameIOS);
void PatchAspectRatio(void *addr, u32 len, u8 aspect);
#ifdef __cplusplus
}
#endif
#endif