don't do a DVD_Mount for GC-mode on Wii, add ifdef for Wii-only SMB code
[libogc.git] / libogc / sys_state.inl
bloba3835a96cbea235b4f059fff1df8463c6f74a580
1 #ifndef __SYS_STATE_INL__
2 #define __SYS_STATE_INL__
4 static __inline__ void __sys_state_init()
6         _sys_state_curr = SYS_STATE_BEFORE_INIT;
9 static __inline__ void __sys_state_set(u32 sys_state)
11         _sys_state_curr = sys_state;
14 static __inline__ u32 __sys_state_get()
16         return _sys_state_curr;
19 static __inline__ u32 __sys_state_beforeinit(u32 statecode)
21         return (statecode==SYS_STATE_BEFORE_INIT);
24 static __inline__ u32 __sys_state_beforemultitasking(u32 statecode)
26         return (statecode==SYS_STATE_BEFORE_MT);
29 static __inline__ u32 __sys_state_beginmultitasking(u32 statecode)
31         return (statecode==SYS_STATE_BEGIN_MT);
34 static __inline__ u32 __sys_state_up(u32 statecode)
36         return (statecode==SYS_STATE_UP);
39 static __inline__ u32 __sys_state_failed(u32 statecode)
41         return (statecode==SYS_STATE_FAILED);
44 #endif