mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(profile): more bc routines
This commit is contained in:
parent
1e6fb307de
commit
fb267a5683
35 changed files with 818 additions and 2959 deletions
|
|
@ -41,7 +41,7 @@ enum Blizzard__File__Operation {
|
|||
num_operations
|
||||
};
|
||||
|
||||
#define FS_OP(N) bool (*f_##N)(Blizzard__File__Filesystem* fs, System_File__Stacked__FileParms* parms)
|
||||
#define FS_OP(N) bool (*N)(Blizzard__File__Filesystem* fs, System_File__Stacked__FileParms* parms)
|
||||
|
||||
// 0x7C bytes = 4 + 4 + (29 * 4)
|
||||
struct Blizzard__File__Filesystem {
|
||||
|
|
|
|||
22
profile/3.3.5a-windows-386/include/bc/file/info.h
Normal file
22
profile/3.3.5a-windows-386/include/bc/file/info.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef BC_FILE_INFO_H
|
||||
#define BC_FILE_INFO_H
|
||||
|
||||
#include "bc/time/timestamp.h"
|
||||
|
||||
DECLARE_STRUCT(Blizzard__File__FileInfo);
|
||||
|
||||
struct Blizzard__File__FileInfo {
|
||||
char* name;
|
||||
uint32_t unk04;
|
||||
// uint32_t unk08;
|
||||
// uint32_t unk0C;
|
||||
uint64_t size; // 08
|
||||
uint32_t attributes;
|
||||
Blizzard__Time__Timestamp creationTime;
|
||||
Blizzard__Time__Timestamp lastWriteTime;
|
||||
Blizzard__Time__Timestamp lastAccessTime;
|
||||
int32_t exists;
|
||||
int32_t normal;
|
||||
};
|
||||
|
||||
#endif
|
||||
15
profile/3.3.5a-windows-386/include/bc/file/processdir.h
Normal file
15
profile/3.3.5a-windows-386/include/bc/file/processdir.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef BC_FILE_PROCESS_DIR_H
|
||||
#define BC_FILE_PROCESS_DIR_H
|
||||
|
||||
DECLARE_STRUCT(Blizzard__File__ProcessDirParms);
|
||||
|
||||
struct Blizzard__File__ProcessDirParms {
|
||||
const char* dir;
|
||||
const char* item;
|
||||
void* param;
|
||||
bool isdir;
|
||||
};
|
||||
|
||||
typedef bool (*Blizzard__File__ProcessDirCallback)(const Blizzard__File__ProcessDirParms* parms);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,10 +1,19 @@
|
|||
#ifndef BC_FILE_STREAM_H
|
||||
#define BC_FILE_STREAM_H
|
||||
|
||||
#include "bc/file/info.h"
|
||||
|
||||
DECLARE_STRUCT(Blizzard__File__StreamRecord);
|
||||
|
||||
struct Blizzard__File__StreamRecord {
|
||||
void* handle;
|
||||
void* filehandle;
|
||||
uint32_t flags;
|
||||
bool haveinfo;
|
||||
uint32_t unk0C;
|
||||
Blizzard__File__FileInfo info;
|
||||
int32_t* unk48;
|
||||
char* name; // name is a pointer to &filehandle (0x00) + sizeof(StreamRecord)
|
||||
// extra buffer that holds the actual data of name
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue