2016-04-03 02:31:02 +02:00
|
|
|
|
|
|
|
#ifndef _SYS_H_
|
|
|
|
#define _SYS_H_
|
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
#define HBC_OHBC 0x000100014f484243ULL//1.1.3
|
|
|
|
#define HBC_LULZ 0x000100014c554c5aULL//1.1.1
|
2016-04-03 02:31:02 +02:00
|
|
|
#define HBC_108 0x00010001af1bf516ULL
|
2016-12-14 19:47:13 +01:00
|
|
|
#define HBC_JODI 0x000100014a4f4449ULL
|
|
|
|
#define HBC_HAXX 0x0001000148415858ULL
|
2016-04-03 02:31:02 +02:00
|
|
|
#define RETURN_CHANNEL 0x0001000857494948ULL
|
|
|
|
#define SYSTEM_MENU 0x0000000100000002ULL
|
2017-09-22 00:03:41 +02:00
|
|
|
#define WIIU_CHANNEL 0x0001000248435641ULL//HCVA
|
2016-04-03 02:31:02 +02:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2018-07-09 16:53:35 +02:00
|
|
|
EXIT_TO_MENU = 0,
|
2016-04-03 02:31:02 +02:00
|
|
|
EXIT_TO_HBC,
|
2017-09-22 00:03:41 +02:00
|
|
|
EXIT_TO_WIIU,
|
2018-07-09 16:53:35 +02:00
|
|
|
PRIILOADER_DEF,
|
2016-04-03 02:31:02 +02:00
|
|
|
EXIT_TO_PRIILOADER,
|
|
|
|
EXIT_TO_BOOTMII,
|
|
|
|
EXIT_TO_WFNK2O,
|
|
|
|
EXIT_TO_SMNK2O,
|
2019-05-06 20:53:33 +02:00
|
|
|
SHUTDOWN_STANDBY,
|
|
|
|
SHUTDOWN_IDLE,
|
2018-07-09 16:53:35 +02:00
|
|
|
WIIFLOW_DEF,// m_cfg.getInt("GENERAL", "exit_to", 0). (EXIT_TO_MENU, EXIT_TO_HBC, EXIT_TO_WIIU)
|
2016-04-03 02:31:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Prototypes */
|
|
|
|
void Sys_Init(void);
|
|
|
|
bool Sys_HW_Access(void);
|
|
|
|
bool Sys_Exiting(void);
|
|
|
|
void Sys_Exit(void);
|
|
|
|
void Sys_ExitTo(int);
|
|
|
|
int Sys_GetExitTo(void);
|
|
|
|
void Sys_SetNeekPath(const char*);
|
|
|
|
|
|
|
|
void Open_Inputs(void);
|
|
|
|
void Close_Inputs(void);
|
|
|
|
|
2017-09-22 00:03:41 +02:00
|
|
|
bool AHBPROT_Patched(void);
|
2016-04-03 02:31:02 +02:00
|
|
|
bool IsOnWiiU(void);
|
|
|
|
|
|
|
|
/* All our extern C stuff */
|
|
|
|
extern void __exception_setreload(int t);
|
|
|
|
extern int mainIOS;
|
|
|
|
extern bool useMainIOS;
|
2018-08-01 14:27:12 +02:00
|
|
|
extern bool isWiiVC;
|
2016-04-03 02:31:02 +02:00
|
|
|
extern volatile bool NANDemuView;
|
|
|
|
extern volatile bool networkInit;
|
|
|
|
extern u8 currentPartition;
|
|
|
|
extern u8 currentPort;
|
2021-11-13 01:11:42 +01:00
|
|
|
extern char wii_games_dir[64];
|
|
|
|
extern char gc_games_dir[64];
|
2016-04-03 02:31:02 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif
|