mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
fix(gx): SFile can read from an MPQ-archived file or a plain file
This commit is contained in:
parent
e20f185f75
commit
70642dec21
2 changed files with 90 additions and 24 deletions
|
|
@ -13,6 +13,13 @@ class StreamRecord;
|
|||
};
|
||||
};
|
||||
|
||||
enum SFILE_TYPE {
|
||||
SFILE_PLAIN = 0x0,
|
||||
SFILE_COMPRESSED = 0x1,
|
||||
SFILE_PAQ = 0x2,
|
||||
SFILE_OLD_SFILE = 0x3,
|
||||
SFILE_ZIP_FILE = 0x4
|
||||
};
|
||||
|
||||
class SFile {
|
||||
public:
|
||||
|
|
@ -31,7 +38,8 @@ class SFile {
|
|||
static int32_t GetDataPath(char* path, size_t capacity);
|
||||
|
||||
// Member variables
|
||||
void* m_handle;
|
||||
SFILE_TYPE m_type;
|
||||
void* m_handle;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue