usbloadergx/source/settings/cfg.h

199 lines
4.4 KiB
C
Raw Normal View History

#ifndef _CFG_H_
#define _CFG_H_
#include <gctypes.h>
#ifdef __cplusplus
extern "C"
{
#endif
#include "usbloader/disc.h"
#define CFG_HOME_REBOOT 0
#define CFG_HOME_EXIT 1
#define CFG_VIDEO_SYS 0 // system default
#define CFG_VIDEO_DEFAULT 1
#define CFG_VIDEO_GAME 1 // game default
#define CFG_VIDEO_PATCH 2 // patch mode
#define CFG_VIDEO_PAL50 3 // force PAL
#define CFG_VIDEO_PAL60 4 // force PAL60
#define CFG_VIDEO_NTSC 5 // force NTSC
#define CFG_VIDEO_COUNT 6
#define CFG_LANG_CONSOLE 0
#define CFG_LANG_JAPANESE 1
#define CFG_LANG_ENGLISH 2
#define CFG_LANG_GERMAN 3
#define CFG_LANG_FRENCH 4
#define CFG_LANG_SPANISH 5
#define CFG_LANG_ITALIAN 6
#define CFG_LANG_DUTCH 7
#define CFG_LANG_S_CHINESE 8
#define CFG_LANG_T_CHINESE 9
#define CFG_LANG_KOREAN 10
#define CFG_LANG_COUNT 11
extern char bootDevice[10];
extern u8 ocarinaChoice;
extern u16 playcnt;
extern u8 videoChoice;
extern u8 languageChoice;
extern u8 viChoice;
extern u8 iosChoice;
extern u8 parentalcontrolChoice;
extern u8 fix002;
extern u8 reloadblock;
extern u8 countrystrings;
extern u8 alternatedol;
extern u32 alternatedoloffset;
extern u8 xflip;
extern u8 qboot;
extern u8 sort;
extern u8 fave;
extern u8 wsprompt;
extern u8 keyset;
extern u8 gameDisplay;
extern u16 playcount;
extern u8 favoritevar;
extern char alternatedname[40];
extern u8 returnToLoaderGV;
2010-09-24 02:48:03 +02:00
enum
{
ConsoleLangDefault = 0, jap, eng, ger, fren, esp, it, dut, schin, tchin, kor, settings_language_max
// always the last entry
};
struct Game_CFG
{
2010-09-24 02:48:03 +02:00
u8 id[8];
u8 video;
u8 language;
u8 ocarina;
u8 vipatch;
u8 ios;
u8 parentalcontrol;
u8 errorfix002;
u8 iosreloadblock;
u8 loadalternatedol;
u32 alternatedolstart;
u8 patchcountrystrings;
char alternatedolname[40];
u8 returnTo;
};
struct Game_NUM
{
2010-09-24 02:48:03 +02:00
u8 id[8];
u8 favorite;
u16 count;
};
void CFG_LoadGameNum(); // -1 = non forced mode
2010-09-24 02:48:03 +02:00
struct Game_CFG* CFG_get_game_opt(const u8 *id);
struct Game_NUM* CFG_get_game_num(const u8 *id);
bool CFG_save_game_opt(u8 *id);
bool CFG_save_game_num(u8 *id);
bool CFG_reset_all_playcounters();
2010-09-24 02:48:03 +02:00
bool CFG_forget_game_opt(u8 *id);
bool CFG_forget_game_num(u8 *id);
enum
{
systemdefault = 0, discdefault, patch, pal50, pal60, ntsc, settings_video_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
off = 0, on, settings_off_on_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
wiilight_off = 0, wiilight_on, wiilight_forInstall, settings_wiilight_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
GameID, GameRegion, Both, Neither, settings_sinfo_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
hr12 = 0, hr24, Off, settings_clock_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
ALL = 0, PLAYCOUNT,
};
2010-09-24 02:48:03 +02:00
enum
{
RumbleOff = 0, RumbleOn, settings_rumble_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
TooltipsOff = 0, TooltipsOn, settings_tooltips_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
min3 = 1, min5, min10, min20, min30, min60, settings_screensaver_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
no = 0, yes, sysmenu, wtf, disk3d, settings_xflip_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
us = 0, qwerty, dvorak, euro, azerty, settings_keyset_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
list, grid, carousel, settings_display_max
};
2010-09-24 02:48:03 +02:00
enum
{
scrollDefault, scrollMarquee, settings_scrolleffect_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
install_game_only, install_all, install_all_but_update, settings_partitions_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
enum
{
not_install_to_dir, install_to_gameid_name, install_to_name_gameid, settings_installdir_max
// always the last entry
};
2010-09-24 02:48:03 +02:00
char *get_title(struct discHdr *header);
char *cfg_get_title(u8 *id);
void title_set(char *id, char *title);
void titles_default();
2010-09-24 02:48:03 +02:00
u8 get_block(struct discHdr *header);
s8 get_pegi_block(struct discHdr *header);
2010-09-24 02:48:03 +02:00
void CFG_Cleanup(void);
#ifdef __cplusplus
}
#endif
#endif