mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-23 14:41:33 -04:00
0ff06d2974
* Fix missing arg to JUT_ASSERT * Fix some MWCC version diff errors * Compile m_Do_ext, d_demo, actor_mng * Add VSCode task to quickly switch between versions * Unlink magLift for debug * Update the hash of the debug dol The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment. The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol. The DOL now builds OK. * Fix all debug REL dtor splits All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds. * Add genMessage declarations to all HIO subclasses * Fixing more compilation errors * m_Do_mtx 100% on debug Cannot be linked due to weak function name mangling? * Improve various matches * Fix all remaining compilation errors * Fix new compilation errors from main * Fix retail regression * Link f_pc_profile_lst
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
#ifndef JFWSYSTEM_H
|
|
#define JFWSYSTEM_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
typedef struct _GXRenderModeObj GXRenderModeObj;
|
|
class JKRExpHeap;
|
|
class JKRThread;
|
|
class JUTConsole;
|
|
class JUTConsoleManager;
|
|
class JUTDbPrint;
|
|
class JUTResFont;
|
|
struct ResFONT;
|
|
|
|
/**
|
|
* @ingroup jsystem-jframework
|
|
*
|
|
*/
|
|
struct JFWSystem {
|
|
struct CSetUpParam {
|
|
static s32 maxStdHeaps;
|
|
static u32 sysHeapSize;
|
|
static u32 fifoBufSize;
|
|
static u32 aramAudioBufSize;
|
|
static u32 aramGraphBufSize;
|
|
static s32 streamPriority;
|
|
static s32 decompPriority;
|
|
static s32 aPiecePriority;
|
|
static ResFONT* systemFontRes;
|
|
static GXRenderModeObj* renderMode;
|
|
static u32 exConsoleBufferSize;
|
|
};
|
|
|
|
/* 80271CD0 */ static void firstInit();
|
|
/* 80271D18 */ static void init();
|
|
|
|
static JUTConsole* getSystemConsole() { return systemConsole; }
|
|
static JKRExpHeap* getSystemHeap() { return systemHeap; }
|
|
|
|
static void setMaxStdHeap(s32 max) { CSetUpParam::maxStdHeaps = max; }
|
|
static void setSysHeapSize(u32 size) { CSetUpParam::sysHeapSize = size; }
|
|
static void setFifoBufSize(u32 size) { CSetUpParam::fifoBufSize = size; }
|
|
static void setAramAudioBufSize(u32 size) { CSetUpParam::aramAudioBufSize = size; }
|
|
static void setAramGraphBufSize(u32 size) { CSetUpParam::aramGraphBufSize = size; }
|
|
static void setRenderMode(GXRenderModeObj* p_modeObj) { CSetUpParam::renderMode = p_modeObj; }
|
|
|
|
static JKRExpHeap* rootHeap;
|
|
static JKRExpHeap* systemHeap;
|
|
static JKRThread* mainThread;
|
|
static JUTDbPrint* debugPrint;
|
|
static JUTResFont* systemFont;
|
|
static JUTConsoleManager* systemConsoleManager;
|
|
static JUTConsole* systemConsole;
|
|
};
|
|
|
|
#endif /* JFWSYSTEM_H */
|