patch/gg support, 1.201 release

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@58 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-02-26 23:46:45 +00:00
parent 68cba51e20
commit b67ef287e7
8 changed files with 456 additions and 8 deletions

31
Pico/Patch.h Normal file
View file

@ -0,0 +1,31 @@
#ifndef _GENIE_DECODE_H__
#define _GENIE_DECODE_H__
#ifdef __cplusplus
extern "C" {
#endif
struct patch_inst
{
char code[12];
char name[52];
unsigned int active;
unsigned int addr;
unsigned short data;
unsigned short data_old;
};
extern struct patch_inst *PicoPatches;
extern int PicoPatchCount;
int PicoPatchLoad(const char *fname);
void PicoPatchUnload(void);
void PicoPatchPrepare(void);
void PicoPatchApply(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // _GENIE_DECODE_H__