mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
956e84b0e7
* Fix clang union handling (affects all TUs including d_camera.h) Union members with non-trivial ctors/dtors is undefined behavior and clangd normally throws a fit and refuses to parse the whole union, but it seems to be possible to ifdef the problematic ctors out for non-mwerks compilers and explicitly tell modern compilers to use the defaults instead. Thanks to encounter for this fix. * Link all TUs that already match on debug In order to link TUs for debug, most functions seem to need to have their alignment set to 16 in symbols.txt. There are a few hundred functions that seem to be the exception and break when their alignment is set to 16, but I don't know the reason for this. * Remove some fakematches (nosyminline/sym off) for weak func order in retail * Fix clang not knowing that MSL_C++ is C++ * Link more debug TUs * Fix missing PAL split * Fix wrong slashes being used in includes * RZDE01_00: Fix incorrect capitalization in config.yml * Add RZDE01_00 to configure task * Revert configure.py to use MatchingFor * Fix PAL splits and symbols, link matching PAL TUs
59 lines
1.8 KiB
C++
59 lines
1.8 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 JUTResFont* getSystemFont() { return systemFont; }
|
|
|
|
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;
|
|
static bool sInitCalled;
|
|
};
|
|
|
|
#endif /* JFWSYSTEM_H */
|