Files
tp/include/JSystem/JFramework/JFWSystem.h
T

78 lines
2.2 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef JFWSYSTEM_H
#define JFWSYSTEM_H
#include "dolphin/types.h"
#include "JSystem/JUtility/JUTAssert.h"
2021-03-28 22:49:05 +02:00
2023-05-12 12:10:14 -07:00
typedef struct _GXRenderModeObj GXRenderModeObj;
class JKRExpHeap;
class JKRThread;
class JUTConsole;
class JUTConsoleManager;
class JUTDbPrint;
class JUTResFont;
struct ResFONT;
2024-04-12 00:10:30 -06:00
/**
* @ingroup jsystem-jframework
*
*/
struct JFWSystem {
struct CSetUpParam {
2022-01-09 17:33:14 -08:00
static s32 maxStdHeaps;
static u32 sysHeapSize;
static u32 fifoBufSize;
static u32 aramAudioBufSize;
static u32 aramGraphBufSize;
static s32 streamPriority;
static s32 decompPriority;
static s32 aPiecePriority;
2022-01-09 17:33:14 -08:00
static ResFONT* systemFontRes;
static const GXRenderModeObj* renderMode;
2022-01-09 17:33:14 -08:00
static u32 exConsoleBufferSize;
};
2025-11-30 14:23:42 -08:00
static void firstInit();
static void init();
static JUTConsole* getSystemConsole() { return systemConsole; }
static JKRExpHeap* getSystemHeap() { return systemHeap; }
static JUTResFont* getSystemFont() { return systemFont; }
static void setMaxStdHeap(int max) {
JUT_ASSERT(47, sInitCalled == FALSE);
CSetUpParam::maxStdHeaps = max;
}
static void setSysHeapSize(u32 size) {
JUT_ASSERT(50, sInitCalled == FALSE);
CSetUpParam::sysHeapSize = size;
}
static void setFifoBufSize(u32 size) {
JUT_ASSERT(53, sInitCalled == FALSE);
CSetUpParam::fifoBufSize = size;
}
static void setAramAudioBufSize(u32 size) {
JUT_ASSERT(58, sInitCalled == FALSE);
CSetUpParam::aramAudioBufSize = size;
}
static void setAramGraphBufSize(u32 size) {
JUT_ASSERT(61, sInitCalled == FALSE);
CSetUpParam::aramGraphBufSize = size;
}
static void setRenderMode(const GXRenderModeObj* p_modeObj) {
JUT_ASSERT(80, sInitCalled == FALSE);
CSetUpParam::renderMode = p_modeObj;
}
2022-01-09 17:33:14 -08:00
static JKRExpHeap* rootHeap;
static JKRExpHeap* systemHeap;
static JKRThread* mainThread;
static JUTDbPrint* debugPrint;
static JUTResFont* systemFont;
static JUTConsoleManager* systemConsoleManager;
static JUTConsole* systemConsole;
static bool sInitCalled;
};
2021-03-28 22:49:05 +02:00
#endif /* JFWSYSTEM_H */