mirror of
https://github.com/SMGCommunity/Petari.git
synced 2026-11-10 04:41:32 -10:00
* (Cleanup) offset comments for DinoPackun * (Cleanup) offset comments for SkeletalFishBoss * (Cleanup) offset comments for CameraTranslators * (Cleanup) offset comments for Demos * (Cleanup) offset comments for Enemies * (Cleanup) offset comments for Gravities * (Cleanup) offset comments for LiveActors * (Cleanup) offset comments for Maps * (Cleanup) offset comments for MapObjs * (Cleanup) offset comments for NameObjs * (Cleanup) offset comments for NPCs * (Cleanup) offset comments for Player * (Cleanup) offset comments for Scenes * (Cleanup) offset comments for System * (Cleanup) offset comments for Utils * (Cleanup) offset comments for JSystem * (Cleanup) offset comments for MetroTRK * forgot the union comments * (Cleanup) offset comments for MSL_C * (Cleanup) offset comments for nw4r * (Cleanup) offset comments for the SDK * (Cleanup) offset comments for all that was left
45 lines
1001 B
C++
45 lines
1001 B
C++
#pragma once
|
|
|
|
#include <revolution/types.h>
|
|
|
|
class ResFileInfo {
|
|
public:
|
|
ResFileInfo();
|
|
|
|
void setName(const char*, bool);
|
|
|
|
inline bool isEqualHashCode(u32 hash) const {
|
|
return mHashCode == hash;
|
|
}
|
|
|
|
/* 0x00 */ void* mResource;
|
|
/* 0x04 */ u32 _4;
|
|
/* 0x08 */ void* _8;
|
|
/* 0x0C */ u32 _C;
|
|
/* 0x10 */ char* mName;
|
|
/* 0x14 */ u32 mHashCode;
|
|
};
|
|
|
|
class ResTable {
|
|
public:
|
|
ResTable();
|
|
|
|
void newFileInfoTable(u32);
|
|
ResFileInfo* add(const char*, void*, bool);
|
|
const char* getResName(u32) const;
|
|
void* getRes(u32) const;
|
|
void* getRes(const char*) const;
|
|
ResFileInfo* findFileInfo(const char*) const;
|
|
ResFileInfo* getFileInfo(u32) const;
|
|
bool isExistRes(const char*) const;
|
|
int getResIndex(const char*) const;
|
|
const char* findResName(const void*) const;
|
|
const char* getResName(const void*) const;
|
|
|
|
/* 0x0 */ ResFileInfo* mFileInfoTable;
|
|
/* 0x4 */ u32 mCount;
|
|
|
|
private:
|
|
void* findRes(const char*) const;
|
|
};
|