prime/include/Kyoto/CResLoader.hpp
Luke Street 0f25a3c8d4 Migrate s32->int, u32->uint; fix dolphin/types.h
Former-commit-id: 7eb08b6ee832f11971da0cfdc53b5a55b74ac79d
2022-09-05 00:01:22 -04:00

40 lines
792 B
C++

#ifndef _CRESLOADER_HPP
#define _CRESLOADER_HPP
#include "types.h"
#include "rstl/list.hpp"
#include "rstl/string.hpp"
#include "Kyoto/IObjectStore.hpp"
class CPakFile;
struct SResInfo {
CAssetId x0_id;
bool x4_compressed : 1;
int x4_typeIdx; // CFactoryMgr::ETypeTable
uint x5_offsetDiv32 : 27;
uint x7_sizeDiv32 : 27;
};
class CResLoader {
public:
int GetPakCount() const;
CPakFile& GetPakFile(int idx) const;
void AddPakFileAsync(const rstl::string&, bool, bool);
void AsyncIdlePakLoading();
bool AreAllPaksLoaded() const;
private:
rstl::list< void > x0_aramList;
rstl::list< void > x18_pakLoadedList;
rstl::list< void > x30_pakLoadingList;
unkptr x48_curPak;
CAssetId x4c_cachedResId;
SResInfo* x50_cachedResInfo;
bool x54_forwardSeek;
};
#endif