mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(profile): add more work related to console
This commit is contained in:
parent
08b49c5197
commit
e95eb3354d
49 changed files with 9188 additions and 245 deletions
82
profile/3.3.5a-windows-386/include/bc/file/filesystem.h
Normal file
82
profile/3.3.5a-windows-386/include/bc/file/filesystem.h
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
#ifndef BC_FILE_FILESYSTEM_H
|
||||
#define BC_FILE_FILESYSTEM_H
|
||||
|
||||
#include "bc/systemfile/stacked.h"
|
||||
|
||||
DECLARE_ENUM(Blizzard__File__Operation);
|
||||
|
||||
DECLARE_STRUCT(Blizzard__File__Filesystem);
|
||||
|
||||
// invented enum
|
||||
enum Blizzard__File__Operation {
|
||||
cd,
|
||||
close,
|
||||
create,
|
||||
cwd,
|
||||
dirwalk,
|
||||
exists,
|
||||
flush,
|
||||
getfileinfo,
|
||||
getfreespace,
|
||||
getpos,
|
||||
getrootchars,
|
||||
isabspath,
|
||||
isreadonly,
|
||||
makeabspath,
|
||||
mkdir,
|
||||
move,
|
||||
copy,
|
||||
open,
|
||||
read,
|
||||
readp,
|
||||
rmdir,
|
||||
setcachemode,
|
||||
seteof,
|
||||
setfileinfo,
|
||||
setpos,
|
||||
unlink,
|
||||
write,
|
||||
writep,
|
||||
shutdown,
|
||||
num_operations
|
||||
};
|
||||
|
||||
#define FS_OP(N) bool (*f_##N)(Blizzard__File__Filesystem* fs, System_File__Stacked__FileParms* parms)
|
||||
|
||||
// 0x7C bytes = 4 + 4 + (29 * 4)
|
||||
struct Blizzard__File__Filesystem {
|
||||
Blizzard__File__Filesystem* base;
|
||||
Blizzard__File__Filesystem* next;
|
||||
|
||||
FS_OP(cd);
|
||||
FS_OP(close);
|
||||
FS_OP(create);
|
||||
FS_OP(cwd);
|
||||
FS_OP(dirwalk);
|
||||
FS_OP(exists);
|
||||
FS_OP(flush);
|
||||
FS_OP(getfileinfo);
|
||||
FS_OP(getfreespace);
|
||||
FS_OP(getpos);
|
||||
FS_OP(getrootchars);
|
||||
FS_OP(isabspath);
|
||||
FS_OP(isreadonly);
|
||||
FS_OP(makeabspath);
|
||||
FS_OP(mkdir);
|
||||
FS_OP(move);
|
||||
FS_OP(copy);
|
||||
FS_OP(open);
|
||||
FS_OP(read);
|
||||
FS_OP(readp);
|
||||
FS_OP(rmdir);
|
||||
FS_OP(setcachemode);
|
||||
FS_OP(seteof);
|
||||
FS_OP(setfileinfo);
|
||||
FS_OP(setpos);
|
||||
FS_OP(unlink);
|
||||
FS_OP(write);
|
||||
FS_OP(writep);
|
||||
FS_OP(shutdown);
|
||||
};
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/bc/file/stream.h
Normal file
10
profile/3.3.5a-windows-386/include/bc/file/stream.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef BC_FILE_STREAM_H
|
||||
#define BC_FILE_STREAM_H
|
||||
|
||||
DECLARE_STRUCT(Blizzard__File__StreamRecord);
|
||||
|
||||
struct Blizzard__File__StreamRecord {
|
||||
void* handle;
|
||||
};
|
||||
|
||||
#endif
|
||||
8
profile/3.3.5a-windows-386/include/bc/osfile.h
Normal file
8
profile/3.3.5a-windows-386/include/bc/osfile.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef BC_OS_FILE_H
|
||||
#define BC_OS_FILE_H
|
||||
|
||||
#include "common/handle.h"
|
||||
|
||||
DECLARE_HANDLE(HOSFILE);
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/bc/systemfile/stacked.h
Normal file
10
profile/3.3.5a-windows-386/include/bc/systemfile/stacked.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef BC_SYSTEM_FILE_STACKED_H
|
||||
#define BC_SYSTEM_FILE_STACKED_H
|
||||
|
||||
DECLARE_STRUCT(System_File__Stacked__FileParms);
|
||||
|
||||
struct System_File__Stacked__FileParms {
|
||||
uint32_t offset;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue