mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(profile): add more filesystem API stuff
This commit is contained in:
parent
fb267a5683
commit
3cd843a220
20 changed files with 494 additions and 163 deletions
|
|
@ -11,11 +11,11 @@ struct Blizzard__File__FileInfo {
|
|||
// 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 attributes;
|
||||
Blizzard__Time__Timestamp createtime;
|
||||
Blizzard__Time__Timestamp lastwritetime;
|
||||
Blizzard__Time__Timestamp lastaccesstime;
|
||||
int32_t filetype;
|
||||
int32_t normal;
|
||||
};
|
||||
|
||||
|
|
|
|||
20
profile/3.3.5a-windows-386/include/bc/file/mode.h
Normal file
20
profile/3.3.5a-windows-386/include/bc/file/mode.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef BC_FILE_MODE_H
|
||||
#define BC_FILE_MODE_H
|
||||
|
||||
DECLARE_ENUM(Blizzard__File__Mode);
|
||||
|
||||
enum Blizzard__File__Mode {
|
||||
read = 0x0001,
|
||||
write = 0x0002,
|
||||
shareread = 0x0004,
|
||||
sharewrite = 0x0008,
|
||||
nocache = 0x0040,
|
||||
temporary = 0x0080,
|
||||
truncate = 0x0100,
|
||||
append = 0x0200,
|
||||
create = 0x0400,
|
||||
mustnotexist = 0x0800,
|
||||
mustexist = 0x1000
|
||||
};
|
||||
|
||||
#endif
|
||||
11
profile/3.3.5a-windows-386/include/bc/file/removedirectory.h
Normal file
11
profile/3.3.5a-windows-386/include/bc/file/removedirectory.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef BC_FILE_REMOVE_DIRECTORY_H
|
||||
#define BC_FILE_REMOVE_DIRECTORY_H
|
||||
|
||||
DECLARE_STRUCT(Blizzard__File__RemoveDirectoryAndContents__Internal__RemoveDirectoryAndContentsParms);
|
||||
|
||||
struct Blizzard__File__RemoveDirectoryAndContents__Internal__RemoveDirectoryRecurseData {
|
||||
bool unk00;
|
||||
bool unk01; // set normal?
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -7,10 +7,11 @@ DECLARE_STRUCT(Blizzard__File__StreamRecord);
|
|||
|
||||
struct Blizzard__File__StreamRecord {
|
||||
void* filehandle;
|
||||
uint32_t flags;
|
||||
int32_t mode;
|
||||
bool haveinfo;
|
||||
uint32_t unk0C;
|
||||
Blizzard__File__FileInfo info;
|
||||
// GetFileInfo only gets a size if this is null or points to a zero value
|
||||
int32_t* unk48;
|
||||
char* name; // name is a pointer to &filehandle (0x00) + sizeof(StreamRecord)
|
||||
// extra buffer that holds the actual data of name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue