mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-24 21:01:34 +02:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
63 lines
2.1 KiB
C
63 lines
2.1 KiB
C
#ifndef RVL_FACE_LIBRARY_INTERNAL_SYSTEM_H
|
|
#define RVL_FACE_LIBRARY_INTERNAL_SYSTEM_H
|
|
#include "RFL_System.h"
|
|
#include "RFLi_Controller.h"
|
|
#include "RFLi_Database.h"
|
|
#include "RFLi_HiddenDatabase.h"
|
|
#include "RFLi_NANDAccess.h"
|
|
#include "RFLi_NANDLoader.h"
|
|
#include "RFLi_Types.h"
|
|
#include <revolution/MEM.h>
|
|
#include <revolution/types.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct RFLiManager {
|
|
void* workBuffer; // at 0x0
|
|
MEMiHeapHead* rootHeap; // at 0x4
|
|
MEMiHeapHead* systemHeap; // at 0x8
|
|
MEMiHeapHead* tmpHeap; // at 0xC
|
|
RFLiDBManager dbMgr; // at 0x10
|
|
RFLiLoader loader; // at 0xC0
|
|
RFLiHDBManager hdbMgr; // at 0x16C
|
|
RFLiCtrlBufManager ctrlMgr; // at 0x1AAC
|
|
BOOL working; // at 0x1B34
|
|
BOOL deluxeTex; // at 0x1B38
|
|
u8 brokenType; // at 0x1B3C
|
|
RFLErrcode lastErrCode; // at 0x1B40
|
|
RFLErrcode beforeCloseErr; // at 0x1B44
|
|
s32 lastReason; // at 0x1B48
|
|
s32 beforeCloseReason; // at 0x1B4C
|
|
RFLiAccessInfo info[RFLiFileType_Max]; // at 0x1B50
|
|
RFLiCallback systemCb; // at 0x1F10
|
|
RFLCallback iconDrawCb; // at 0x1F14
|
|
RFLCallback modelDrawCb; // at 0x1F18
|
|
char UNK_0x1F1C[0x4];
|
|
u32 _1F20;
|
|
} RFLiManager;
|
|
|
|
RFLErrcode RFLiBootLoadAsync(void);
|
|
void* RFLiAlloc(u32 size);
|
|
void* RFLiAlloc32(u32 size);
|
|
void RFLiFree(void* block);
|
|
RFLiDBManager* RFLiGetDBManager(void);
|
|
RFLiHDBManager* RFLiGetHDBManager(void);
|
|
RFLiLoader* RFLiGetLoader(void);
|
|
BOOL RFLiGetWorking(void);
|
|
void RFLiSetWorking(BOOL working);
|
|
RFLiManager* RFLiGetManager(void);
|
|
RFLiAccessInfo* RFLiGetAccInfo(RFLiFileType type);
|
|
RFLiCtrlBufManager* RFLiGetCtrlBufManager(void);
|
|
s32 RFLiGetLastReason(void);
|
|
void RFLiSetFileBroken(RFLiFileBrokenType type);
|
|
BOOL RFLiNotFoundError(void);
|
|
BOOL RFLiNeedRepairError(void);
|
|
BOOL RFLiCriticalError(void);
|
|
BOOL RFLiGetUseDeluxTex(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|