2012-01-23 16:57:30 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef GC_H_
|
|
|
|
#define GC_H_
|
2012-03-10 17:54:57 +01:00
|
|
|
|
2012-07-12 15:21:14 +02:00
|
|
|
// DIOS-MIOS
|
2012-03-10 17:54:57 +01:00
|
|
|
typedef struct DML_CFG
|
|
|
|
{
|
|
|
|
u32 Magicbytes; //0xD1050CF6
|
|
|
|
u32 CfgVersion; //0x00000001
|
|
|
|
u32 VideoMode;
|
|
|
|
u32 Config;
|
|
|
|
char GamePath[255];
|
|
|
|
char CheatPath[255];
|
|
|
|
} DML_CFG;
|
|
|
|
|
|
|
|
enum dmlconfig
|
|
|
|
{
|
|
|
|
DML_CFG_CHEATS = (1<<0),
|
|
|
|
DML_CFG_DEBUGGER = (1<<1),
|
|
|
|
DML_CFG_DEBUGWAIT = (1<<2),
|
|
|
|
DML_CFG_NMM = (1<<3),
|
|
|
|
DML_CFG_NMM_DEBUG = (1<<4),
|
|
|
|
DML_CFG_GAME_PATH = (1<<5),
|
|
|
|
DML_CFG_CHEAT_PATH = (1<<6),
|
|
|
|
DML_CFG_ACTIVITY_LED= (1<<7),
|
|
|
|
DML_CFG_PADHOOK = (1<<8),
|
2012-03-16 22:36:49 +01:00
|
|
|
DML_CFG_NODISC = (1<<9),
|
2012-04-24 21:42:18 +02:00
|
|
|
DML_CFG_BOOT_DISC = (1<<10),
|
|
|
|
DML_CFG_BOOT_DOL = (1<<11),
|
2012-03-10 17:54:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enum dmlvideomode
|
|
|
|
{
|
|
|
|
DML_VID_DML_AUTO = (0<<16),
|
|
|
|
DML_VID_FORCE = (1<<16),
|
|
|
|
DML_VID_NONE = (2<<16),
|
|
|
|
|
|
|
|
DML_VID_FORCE_PAL50 = (1<<0),
|
|
|
|
DML_VID_FORCE_PAL60 = (1<<1),
|
|
|
|
DML_VID_FORCE_NTSC = (1<<2),
|
|
|
|
DML_VID_FORCE_PROG = (1<<3),
|
2012-04-24 21:42:18 +02:00
|
|
|
DML_VID_PROG_PATCH = (1<<4),
|
2012-03-10 17:54:57 +01:00
|
|
|
};
|
|
|
|
|
2012-07-12 17:53:04 +02:00
|
|
|
void DML_New_SetOptions(const char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats, bool debugger, u8 NMM, u8 nodisc, u8 DMLvideoMode, u8 videoSetting);
|
2012-03-11 20:59:15 +01:00
|
|
|
void DML_Old_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats);
|
2012-04-26 19:35:13 +02:00
|
|
|
void DML_New_SetBootDiscOption();
|
2012-05-08 22:38:50 +02:00
|
|
|
void DML_New_WriteOptions();
|
2012-07-12 15:21:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Devolution
|
|
|
|
typedef struct global_config
|
|
|
|
{
|
|
|
|
u32 signature; //0x3EF9DB23
|
|
|
|
u16 version; //0x00000100
|
|
|
|
u16 device_signature;
|
|
|
|
u32 memcard_cluster;
|
|
|
|
u32 disc1_cluster;
|
|
|
|
u32 disc2_cluster;
|
|
|
|
} gconfig;
|
|
|
|
|
2012-07-12 17:53:04 +02:00
|
|
|
bool DEVO_Installed(const char* path);
|
2012-07-13 22:00:54 +02:00
|
|
|
void DEVO_SetOptions(const char* path, const char *partition, const char *loader, bool memcard_emu);
|
2012-07-12 18:02:51 +02:00
|
|
|
void DEVO_Boot();
|
2012-07-12 15:21:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
// General
|
2012-07-12 17:53:04 +02:00
|
|
|
void GC_SetVideoMode(u8 videomode, u8 videoSetting);
|
2012-07-12 15:21:14 +02:00
|
|
|
void GC_SetLanguage(u8 lang);
|
|
|
|
int GC_GameIsInstalled(char *discid, const char* partition, const char* dmlgamedir);
|
|
|
|
|
2012-01-23 16:57:30 +01:00
|
|
|
#endif //GC_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|