2022-08-07 11:38:06 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class file_system final : public module
|
|
|
|
{
|
|
|
|
public:
|
2022-12-09 14:50:13 +01:00
|
|
|
static_assert(sizeof(game::native::fileHandleData_t) == 0x11C);
|
|
|
|
|
2022-08-07 11:38:06 +02:00
|
|
|
void post_load() override;
|
|
|
|
|
|
|
|
static int open_file_by_mode(const char* qpath, int* f, game::native::fsMode_t mode);
|
|
|
|
static int write(const char* buffer, int len, int h);
|
2023-02-11 00:04:26 +00:00
|
|
|
|
|
|
|
static char** list_files(const char* path, const char* extension, game::native::FsListBehavior_e behavior, int* numfiles, int allocTrackType);
|
2023-02-21 11:17:54 +01:00
|
|
|
static void free_file_list(char** list);
|
2022-08-07 11:38:06 +02:00
|
|
|
};
|