2014-04-25 22:23:21 +02:00
|
|
|
|
|
|
|
#ifndef __COMMON_CONFIG_H__
|
|
|
|
#define __COMMON_CONFIG_H__
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
#define NIN_CFG_VERSION 0x00000007
|
2014-04-25 22:23:21 +02:00
|
|
|
#define NIN_CFG_MAXPAD 4
|
2016-04-02 17:46:06 +02:00
|
|
|
#define MEM_CARD_MAX (5)
|
|
|
|
#define MEM_CARD_CODE(x) (1<<(x+2))
|
|
|
|
#define MEM_CARD_SIZE(x) (1<<(x+19))
|
|
|
|
#define MEM_CARD_BLOCKS(x) ((1<<(x+6))-5)
|
2014-04-25 22:23:21 +02:00
|
|
|
|
|
|
|
typedef struct NIN_CFG
|
2013-09-24 23:24:03 +02:00
|
|
|
{
|
2014-04-25 22:23:21 +02:00
|
|
|
unsigned int Magicbytes; // 0x01070CF6
|
2016-11-07 16:06:00 +01:00
|
|
|
unsigned int Version;
|
2014-04-25 22:23:21 +02:00
|
|
|
unsigned int Config;
|
|
|
|
unsigned int VideoMode;
|
|
|
|
unsigned int Language;
|
2013-09-24 23:24:03 +02:00
|
|
|
char GamePath[255];
|
|
|
|
char CheatPath[255];
|
2014-04-25 22:23:21 +02:00
|
|
|
unsigned int MaxPads;
|
|
|
|
unsigned int GameID;
|
2016-04-02 17:46:06 +02:00
|
|
|
unsigned int MemCardBlocks;
|
2013-09-24 23:24:03 +02:00
|
|
|
} NIN_CFG;
|
|
|
|
|
|
|
|
enum ninconfig
|
|
|
|
{
|
2014-04-25 22:23:21 +02:00
|
|
|
NIN_CFG_CHEATS = (1<<0),
|
|
|
|
NIN_CFG_DEBUGGER = (1<<1), // Only for Wii Version
|
|
|
|
NIN_CFG_DEBUGWAIT = (1<<2), // Only for Wii Version
|
2013-09-24 23:24:03 +02:00
|
|
|
NIN_CFG_MEMCARDEMU = (1<<3),
|
2014-04-25 22:23:21 +02:00
|
|
|
NIN_CFG_CHEAT_PATH = (1<<4),
|
|
|
|
NIN_CFG_FORCE_WIDE = (1<<5),
|
|
|
|
NIN_CFG_FORCE_PROG = (1<<6),
|
|
|
|
NIN_CFG_AUTO_BOOT = (1<<7),
|
|
|
|
NIN_CFG_HID = (1<<8),
|
|
|
|
NIN_CFG_OSREPORT = (1<<9),
|
|
|
|
NIN_CFG_USB = (1<<10),
|
2016-04-02 17:46:06 +02:00
|
|
|
NIN_CFG_LED = (1<<11),
|
|
|
|
NIN_CFG_LOG = (1<<12),
|
|
|
|
NIN_CFG_MC_MULTI = (1<<13),
|
|
|
|
NIN_CFG_NATIVE_SI = (1<<14),
|
|
|
|
NIN_CFG_WIIU_WIDE = (1<<15),
|
2016-11-07 16:06:00 +01:00
|
|
|
NIN_CFG_ARCADE_MODE = (1<<16),
|
2013-09-24 23:24:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enum ninvideomode
|
|
|
|
{
|
|
|
|
NIN_VID_AUTO = (0<<16),
|
|
|
|
NIN_VID_FORCE = (1<<16),
|
|
|
|
NIN_VID_NONE = (2<<16),
|
2016-04-02 17:46:06 +02:00
|
|
|
NIN_VID_FORCE_DF = (4<<16),
|
2013-09-24 23:24:03 +02:00
|
|
|
|
2016-04-02 17:46:06 +02:00
|
|
|
NIN_VID_MASK = NIN_VID_AUTO|NIN_VID_FORCE|NIN_VID_NONE|NIN_VID_FORCE_DF,
|
2013-09-24 23:24:03 +02:00
|
|
|
|
|
|
|
NIN_VID_FORCE_PAL50 = (1<<0),
|
|
|
|
NIN_VID_FORCE_PAL60 = (1<<1),
|
|
|
|
NIN_VID_FORCE_NTSC = (1<<2),
|
|
|
|
NIN_VID_FORCE_MPAL = (1<<3),
|
|
|
|
|
|
|
|
NIN_VID_FORCE_MASK = NIN_VID_FORCE_PAL50|NIN_VID_FORCE_PAL60|NIN_VID_FORCE_NTSC|NIN_VID_FORCE_MPAL,
|
2014-04-25 22:23:21 +02:00
|
|
|
|
|
|
|
NIN_VID_PROG = (1<<4), //important to prevent blackscreens
|
2013-09-24 23:24:03 +02:00
|
|
|
};
|
2014-04-25 22:23:21 +02:00
|
|
|
|
|
|
|
enum ninlanguage
|
|
|
|
{
|
|
|
|
NIN_LAN_ENGLISH = 0,
|
|
|
|
NIN_LAN_GERMAN = 1,
|
|
|
|
NIN_LAN_FRENCH = 2,
|
|
|
|
NIN_LAN_SPANISH = 3,
|
|
|
|
NIN_LAN_ITALIAN = 4,
|
|
|
|
NIN_LAN_DUTCH = 5,
|
|
|
|
|
|
|
|
/* Auto will use English for E/P region codes and
|
|
|
|
only other languages when these region codes are used: D/F/S/I/J */
|
|
|
|
|
|
|
|
NIN_LAN_AUTO = -1,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum VideoModes
|
|
|
|
{
|
|
|
|
GCVideoModeNone = 0,
|
|
|
|
GCVideoModePAL60 = 1,
|
|
|
|
GCVideoModeNTSC = 2,
|
|
|
|
GCVideoModePROG = 3,
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|