mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 23:24:18 +01:00
71064e3f77
-moved this stupid now hide wait message debug print to less annoying place -wiiflow wants the dsp shutdown back, so I'll leave it in -we shouldnt try to alloc mem1 after running apploader, just some good advice before booting a game, should prevent codedumps -sd file buffer can be mem1 too, we have enough left -set mem2 usage to 49mb, thats everything we get anyways -banner sounds should load faster now, also banner sound in emulator coverflow when switching game should work again -forcing check wait thread now on boot, not that the thread is still working without noticing ;)
49 lines
1015 B
C
49 lines
1015 B
C
#ifndef _SYS_H_
|
|
#define _SYS_H_
|
|
|
|
#include "utils.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#define HBC_108 0x00010001af1bf516ULL
|
|
#define HBC_JODI 0x0001000148415858ULL
|
|
#define HBC_HAXX 0x000100014a4f4449ULL
|
|
|
|
#define PRIILOADER_DEF 0
|
|
#define EXIT_TO_MENU 1
|
|
#define EXIT_TO_HBC 2
|
|
#define EXIT_TO_PRIILOADER 3
|
|
#define EXIT_TO_DISABLE 4
|
|
#define EXIT_TO_BOOTMII 5
|
|
|
|
// DSPCR bits
|
|
#define DSPCR_DSPRESET 0x0800 // Reset DSP
|
|
#define DSPCR_DSPINT 0x0080 // * interrupt active (RWC)
|
|
#define DSPCR_ARINT 0x0020
|
|
#define DSPCR_AIINT 0x0008
|
|
#define DSPCR_HALT 0x0004 // halt DSP
|
|
#define DSPCR_RES 0x0001 // reset DSP
|
|
|
|
#define _SHIFTL(v, s, w) \
|
|
((u32) (((u32)(v) & ((0x01 << (w)) - 1)) << (s)))
|
|
|
|
/* Prototypes */
|
|
void Sys_Init(void);
|
|
void Sys_LoadMenu(void);
|
|
bool Sys_Exiting(void);
|
|
void Sys_Test(void);
|
|
void Sys_Exit(void);
|
|
void Sys_ExitTo(int);
|
|
void __dsp_shutdown(void);
|
|
|
|
void Open_Inputs(void);
|
|
void Close_Inputs(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif
|