mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
40 lines
889 B
C++
40 lines
889 B
C++
#pragma once
|
|
|
|
#include <revolution.h>
|
|
|
|
class ResFileInfo {
|
|
public:
|
|
ResFileInfo();
|
|
|
|
void setName(const char *, bool);
|
|
|
|
void* mResource; // 0x0
|
|
u32 _4;
|
|
u32 _8;
|
|
u32 _C;
|
|
char* mName; // 0x10
|
|
u32 mHashCode; // 0x14
|
|
};
|
|
|
|
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;
|
|
|
|
ResFileInfo* mFileInfoTable; // 0x0
|
|
u32 mCount; // 0x4
|
|
|
|
private:
|
|
void* findRes(const char *) const;
|
|
}; |