2012-06-14 15:27:57 +00:00
|
|
|
|
2012-01-21 20:57:41 +00:00
|
|
|
#ifndef _SYS_H_
|
|
|
|
#define _SYS_H_
|
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2012-12-07 22:40:16 +00:00
|
|
|
#define HBC_LULZ 0x000100014c554c5aULL
|
2012-01-21 20:57:41 +00:00
|
|
|
#define HBC_108 0x00010001af1bf516ULL
|
|
|
|
#define HBC_JODI 0x0001000148415858ULL
|
|
|
|
#define HBC_HAXX 0x000100014a4f4449ULL
|
2012-05-27 16:37:52 +00:00
|
|
|
#define RETURN_CHANNEL 0x0001000857494948ULL
|
|
|
|
#define SYSTEM_MENU 0x0000000100000002ULL
|
2012-01-21 20:57:41 +00:00
|
|
|
|
2012-08-22 19:09:21 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
PRIILOADER_DEF = 0,
|
|
|
|
EXIT_TO_MENU,
|
|
|
|
EXIT_TO_HBC,
|
|
|
|
EXIT_TO_PRIILOADER,
|
|
|
|
EXIT_TO_DISABLE,
|
|
|
|
EXIT_TO_BOOTMII,
|
2012-09-09 22:38:42 +00:00
|
|
|
EXIT_TO_WFNK2O,
|
|
|
|
EXIT_TO_SMNK2O,
|
2012-09-09 18:35:15 +00:00
|
|
|
BUTTON_CALLBACK,
|
2012-12-07 22:40:16 +00:00
|
|
|
WIIFLOW_DEF,
|
2012-08-22 19:09:21 +00:00
|
|
|
};
|
2012-01-21 20:57:41 +00:00
|
|
|
|
2012-05-19 12:29:24 +00:00
|
|
|
/* Prototypes */
|
|
|
|
void Sys_Init(void);
|
2012-09-20 16:09:32 +00:00
|
|
|
bool Sys_DolphinMode(void);
|
2012-05-19 12:29:24 +00:00
|
|
|
bool Sys_Exiting(void);
|
|
|
|
void Sys_Exit(void);
|
|
|
|
void Sys_ExitTo(int);
|
2012-08-26 12:05:04 +00:00
|
|
|
int Sys_GetExitTo(void);
|
|
|
|
void Sys_SetNeekPath(const char*);
|
2012-05-19 12:29:24 +00:00
|
|
|
|
|
|
|
void Open_Inputs(void);
|
|
|
|
void Close_Inputs(void);
|
2012-01-21 20:57:41 +00:00
|
|
|
|
2012-08-25 15:10:57 +00:00
|
|
|
bool AHBRPOT_Patched(void);
|
2012-11-17 17:30:24 +00:00
|
|
|
|
|
|
|
/* All our extern C stuff */
|
2012-08-23 22:29:15 +00:00
|
|
|
extern void __exception_setreload(int t);
|
|
|
|
extern int mainIOS;
|
2012-08-24 18:01:40 +00:00
|
|
|
extern bool useMainIOS;
|
2012-12-22 16:47:02 +00:00
|
|
|
extern volatile bool NANDemuView;
|
2012-12-22 20:57:23 +00:00
|
|
|
extern volatile bool networkInit;
|
2012-11-17 17:30:24 +00:00
|
|
|
extern u8 currentPartition;
|
2013-02-14 21:30:48 +00:00
|
|
|
extern u8 currentPort;
|
2013-02-07 12:25:39 +00:00
|
|
|
extern char wii_games_dir[];
|
2012-08-23 22:29:15 +00:00
|
|
|
|
2012-01-21 20:57:41 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif
|