2024-12-17 00:28:01 -05:00
|
|
|
#ifndef BC_FILE_STREAM_H
|
|
|
|
|
#define BC_FILE_STREAM_H
|
|
|
|
|
|
2025-03-06 16:40:31 -05:00
|
|
|
#include "bc/file/info.h"
|
|
|
|
|
|
2024-12-17 00:28:01 -05:00
|
|
|
DECLARE_STRUCT(Blizzard__File__StreamRecord);
|
|
|
|
|
|
|
|
|
|
struct Blizzard__File__StreamRecord {
|
2025-03-06 16:40:31 -05:00
|
|
|
void* filehandle;
|
2025-03-16 03:25:07 -04:00
|
|
|
int32_t mode;
|
2025-03-06 16:40:31 -05:00
|
|
|
bool haveinfo;
|
|
|
|
|
uint32_t unk0C;
|
|
|
|
|
Blizzard__File__FileInfo info;
|
2025-03-16 03:25:07 -04:00
|
|
|
// GetFileInfo only gets a size if this is null or points to a zero value
|
2025-03-06 16:40:31 -05:00
|
|
|
int32_t* unk48;
|
|
|
|
|
char* name; // name is a pointer to &filehandle (0x00) + sizeof(StreamRecord)
|
|
|
|
|
// extra buffer that holds the actual data of name
|
2024-12-17 00:28:01 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|