2021-10-03 21:04:03 +00:00
|
|
|
#ifndef _SYSTEM_H
|
|
|
|
#define _SYSTEM_H
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2021-10-04 17:51:29 +00:00
|
|
|
void Pikmin2DefaultMemoryErrorRoutine(void*, u32, s32);
|
|
|
|
void kando_panic_f(bool, const char*, s32, const char*, ...);
|
2021-10-05 01:06:55 +00:00
|
|
|
extern void preUserCallback(unsigned short, struct OSContext*, unsigned long,
|
|
|
|
unsigned long);
|
2021-10-04 11:51:11 +00:00
|
|
|
|
2021-10-07 22:20:28 +00:00
|
|
|
// TODO: define each function
|
2021-10-03 21:04:03 +00:00
|
|
|
struct System {
|
2021-10-11 02:05:19 +00:00
|
|
|
// static void assert_fragmentation(char*);
|
|
|
|
// void enableCPULockDetector(int);
|
|
|
|
// int disableCPULockDetector();
|
|
|
|
System();
|
|
|
|
~System();
|
|
|
|
void construct();
|
|
|
|
// void constructWithDvdAccessFirst();
|
|
|
|
// void constructWithDvdAccessSecond();
|
|
|
|
// void createRomFont(JKRHeap*);
|
|
|
|
// void destroyRomFont();
|
|
|
|
// static void createSoundSystem();
|
|
|
|
// static void loadSoundResource();
|
|
|
|
static void initialize();
|
|
|
|
// void loadResourceFirst();
|
|
|
|
// void loadResourceSecond();
|
|
|
|
int run();
|
|
|
|
// static float getTime();
|
|
|
|
// void clearOptionBlockSaveFlag();
|
|
|
|
// void setOptionBlockSaveFlag();
|
|
|
|
// Game::CommonSaveData::Mgr* getPlayCommonData();
|
|
|
|
// void dvdLoadUseCallBack(DvdThreadCommand*, IDelegate*);
|
|
|
|
// void deleteThreads();
|
|
|
|
// JFWDisplay* setCurrentDisplay(JFWDisplay*);
|
|
|
|
// u32 clearCurrentDisplay(JFWDisplay*);
|
|
|
|
// void beginFrame();
|
|
|
|
// void endFrame();
|
|
|
|
// void beginRender();
|
|
|
|
// void endRender();
|
|
|
|
// ERenderMode setRenderMode(ERenderMode);
|
|
|
|
// static _GXRenderModeObj* getRenderModeObj();
|
|
|
|
// void changeRenderMode(ERenderMode);
|
|
|
|
// u32 heapStatusStart(char*, JKRHeap*);
|
|
|
|
// void heapStatusEnd(char*);
|
|
|
|
// void heapStatusDump(bool);
|
|
|
|
// void heapStatusIndividual();
|
|
|
|
// void heapStatusNormal();
|
|
|
|
// void resetOn(bool);
|
|
|
|
// void resetPermissionOn();
|
|
|
|
// bool isResetActive();
|
|
|
|
// void activeGP();
|
|
|
|
// void inactiveGP();
|
|
|
|
// bool isDvdErrorOccured();
|
|
|
|
// void initCurrentHeapMutex();
|
|
|
|
// void startChangeCurrentHeap(JKRHeap*);
|
|
|
|
// void endChangeCurrentHeap();
|
|
|
|
// void addGenNode(CNode*);
|
|
|
|
// void initGenNode();
|
|
|
|
// void refreshGenNode();
|
|
|
|
// void setFrameRate(int);
|
|
|
|
// bool dvdLoadSyncNoBlock(DvdThreadCommand*);
|
|
|
|
// int dvdLoadSyncAllNoBlock();
|
2021-10-03 21:04:03 +00:00
|
|
|
|
2021-10-11 02:05:19 +00:00
|
|
|
u8 _00[0x3C]; // _00
|
|
|
|
u32* _3C; // _3C
|
|
|
|
u8 _40[0xE0 - 0x40]; // _40
|
2021-10-03 21:04:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|