2010-05-29 17:43:19 +02:00
|
|
|
#ifndef __WIP_H__
|
|
|
|
#define __WIP_H__
|
|
|
|
|
2010-05-30 16:18:25 +02:00
|
|
|
#include <gccore.h>
|
|
|
|
|
2010-09-19 22:25:12 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-05-30 16:18:25 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
u32 offset;
|
|
|
|
u32 srcaddress;
|
|
|
|
u32 dstaddress;
|
|
|
|
} WIP_Code;
|
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
int load_wip_code( u8 *gameid );
|
|
|
|
void do_wip_code( u8 * dst, u32 len );
|
|
|
|
bool set_wip_list( WIP_Code * list, int size );
|
2010-05-29 17:43:19 +02:00
|
|
|
void wip_reset_counter();
|
|
|
|
void free_wip();
|
|
|
|
|
2010-09-19 22:25:12 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-05-29 17:43:19 +02:00
|
|
|
#endif //__WIP_H__
|