FileLoader class
Public static functions
-
static auto listSubdirectories(sead::
FixedSafeString<256> out[], s32 outSize, const char* path) -> u32 -
static auto listFiles(sead::
FixedSafeString<256> out[], s32 outSize, const char* path, const char* suffix) -> u32
Constructors, destructors, conversion operators
- FileLoader(s32 threadPriority)
Public functions
-
auto isExistFile(const sead::
SafeString& path, sead:: FileDevice* device) const -> bool -
auto getFileDevice(const sead::
SafeString& path, sead:: FileDevice* device) const -> sead:: FileDevice* -
auto isExistArchive(const sead::
SafeString& path, sead:: FileDevice* device) const -> bool -
auto isExistDirectory(const sead::
SafeString& path, sead:: FileDevice* device) const -> bool -
auto getFileSize(const sead::
SafeString& path, sead:: FileDevice* device) const -> u32 -
auto loadFile(const sead::
SafeString&, s32, sead:: FileDevice*) -> u8* -
auto tryLoadFileToBuffer(const sead::
SafeString& path, u8* buffer, u32 bufferSize, s32 alignment, sead:: FileDevice* device) -> bool -
auto loadArchive(const sead::
SafeString& path, sead:: FileDevice* device) -> sead:: ArchiveRes* -
auto loadArchiveLocal(const sead::
SafeString& path, const char* suffix, sead:: FileDevice* device) -> sead:: ArchiveRes* -
auto loadArchiveWithExt(const sead::
SafeString& path, const char* suffix, sead:: FileDevice* device) -> sead:: ArchiveRes* -
auto tryRequestLoadArchive(const sead::
SafeString& path, sead:: Heap* heap, sead:: FileDevice* device) -> bool -
auto requestLoadArchive(const sead::
SafeString& path, sead:: Heap* heap, sead:: FileDevice* device) -> ArchiveEntry* - auto loadSoundItem(u32 itemId, u32 unknown, IAudioResourceLoader* loader) -> bool
- auto requestLoadSoundItem(u32 itemId, u32 unknown, IAudioResourceLoader* loader) -> SoundItemEntry*
- auto tryRequestLoadSoundItem(u32 itemId, IAudioResourceLoader* loader) -> bool
-
void requestPreLoadFile(const ByamlIter& preLoadList,
sead::
Heap* heap, IAudioResourceLoader* loader) - void waitLoadDoneAllFile()
- void clearAllEntry()
- void setThreadPriority(s32 priority)