mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-08 12:16:19 -04:00
clean up and format code
This commit is contained in:
@@ -11,10 +11,8 @@
|
||||
#include "types.h"
|
||||
|
||||
// Maybe these are namespaces?
|
||||
struct JFWSystem
|
||||
{
|
||||
struct CSetUpParam
|
||||
{
|
||||
struct JFWSystem {
|
||||
struct CSetUpParam {
|
||||
static int maxStdHeaps;
|
||||
static u32 sysHeapSize;
|
||||
static u32 fifoBufSize;
|
||||
@@ -23,48 +21,47 @@ struct JFWSystem
|
||||
static s32 streamPriority;
|
||||
static s32 decompPriority;
|
||||
static s32 aPiecePriority;
|
||||
static const ResFONT *systemFontRes;
|
||||
static const _GXRenderModeObj *renderMode;
|
||||
static const ResFONT* systemFontRes;
|
||||
static const _GXRenderModeObj* renderMode;
|
||||
static u32 exConsoleBufferSize;
|
||||
};
|
||||
|
||||
static void firstInit();
|
||||
static void init();
|
||||
|
||||
static JKRHeap *rootHeap;
|
||||
static JKRHeap *systemHeap;
|
||||
static JKRThread *mainThread;
|
||||
static JUTDbPrint *debugPrint;
|
||||
static JUTFont *systemFont;
|
||||
static JUTConsoleManager *systemConsoleManager;
|
||||
static JUTConsole *systemConsole;
|
||||
static JKRHeap* rootHeap;
|
||||
static JKRHeap* systemHeap;
|
||||
static JKRThread* mainThread;
|
||||
static JUTDbPrint* debugPrint;
|
||||
static JUTFont* systemFont;
|
||||
static JUTConsoleManager* systemConsoleManager;
|
||||
static JUTConsole* systemConsole;
|
||||
static bool sInitCalled;
|
||||
|
||||
|
||||
|
||||
// No idea how they formatted this lol
|
||||
static void setMaxStdHeap(int stdHeaps) {
|
||||
static void setMaxStdHeap(int stdHeaps) {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::maxStdHeaps = stdHeaps; }
|
||||
CSetUpParam::maxStdHeaps = stdHeaps;
|
||||
}
|
||||
static void setSysHeapSize(u32 heapSize) {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::sysHeapSize = heapSize; }
|
||||
CSetUpParam::sysHeapSize = heapSize;
|
||||
}
|
||||
static void setFifoBufSize(u32 bufSize) {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::fifoBufSize = bufSize; }
|
||||
|
||||
// Inlines for Aram
|
||||
CSetUpParam::fifoBufSize = bufSize;
|
||||
}
|
||||
static void setAramAudioBufSize(u32 bufSize) {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::aramAudioBufSize = bufSize; }
|
||||
CSetUpParam::aramAudioBufSize = bufSize;
|
||||
}
|
||||
static void setAramGraphBufSize(u32 bufSize) {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::aramGraphBufSize = bufSize; }
|
||||
// probably some more inlines for other variables, not used by MKDD
|
||||
static void setRenderMode(const _GXRenderModeObj * rmode) {
|
||||
#line 80
|
||||
CSetUpParam::aramGraphBufSize = bufSize;
|
||||
}
|
||||
static void setRenderMode(const _GXRenderModeObj* rmode) {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::renderMode = rmode; }
|
||||
CSetUpParam::renderMode = rmode;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user