mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 13:01:12 +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>
39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "Game/System/ArchiveHolder.hpp"
|
|
#include "Game/System/FileHolder.hpp"
|
|
#include "Game/System/FileLoaderThread.hpp"
|
|
#include <JSystem/JKernel/JKRDvdRipper.hpp>
|
|
#include <JSystem/JKernel/JKRHeap.hpp>
|
|
#include <revolution.h>
|
|
#include <cstdio>
|
|
|
|
class JKRArchive;
|
|
|
|
class FileLoader {
|
|
public:
|
|
FileLoader();
|
|
|
|
void requestLoadToMainRAM(const char*, u8*, JKRHeap*, JKRDvdRipper::EAllocDirection, bool);
|
|
void requestMountArchive(const char*, JKRHeap*, bool);
|
|
bool isLoaded(const char*) const;
|
|
bool isMountedArchive(const char*) const;
|
|
void* receiveFile(const char*);
|
|
JKRMemArchive* receiveArchive(const char*);
|
|
void receiveAllRequestedFile();
|
|
JKRMemArchive* createAndAddArchive(void*, JKRHeap*, const char*);
|
|
void getMountedArchiveAndHeap(const char*, JKRArchive**, JKRHeap**) const;
|
|
void clearRequestFileInfo(bool);
|
|
void removeHolderIfIsEqualHeap(JKRHeap*);
|
|
void removeFile(const char*);
|
|
bool isNeedToLoad(const char*) const;
|
|
const RequestFileInfo* getRequestFileInfoConst(const char*) const;
|
|
RequestFileInfo* addRequest(const char*);
|
|
|
|
FileLoaderThread* mLoaderThread; // 0x0
|
|
OSMutex mMutex; // 0x4
|
|
RequestFileInfo* mRequestFileInfos; // 0x1C
|
|
s32 mRequestedFileCount; // 0x20
|
|
FileHolder* mFileHolder; // 0x24
|
|
ArchiveHolder* mArchiveHolder; // 0x28
|
|
}; |