Added two things

This commit is contained in:
korenkonder
2024-03-02 12:50:45 +03:00
parent f627d5084d
commit c1d2f94e30
2 changed files with 19 additions and 1 deletions
+15 -1
View File
@@ -22,8 +22,22 @@ struct file_handler_callback_func {
bool ready;
};
struct file_handler {
int32_t count;
struct Mtx_t* mtx;
bool not_ready;
bool reading;
prj::string farc_path;
prj::string file_path;
prj::HeapCMallocType heap_malloc_type;
bool cache;
file_handler_callback_func callback[2];
size_t size;
void* data;
};
struct p_file_handler {
struct file_handler* ptr;
file_handler* ptr;
p_file_handler();
~p_file_handler();
+4
View File
@@ -24,8 +24,12 @@ namespace prj {
static void* (*HeapCMallocAllocate)(HeapCMallocType type, size_t size, const char* name)
= (void* (*)(HeapCMallocType, size_t, const char*))0x00000001403F2A00;
static void* (*HeapCMallocAllocateByType)(HeapCMallocType type, size_t size, const char* name)
= (void* (*)(HeapCMallocType, size_t, const char*))0x0000000140181C30;
static void(*HeapCMallocFree)(HeapCMallocType type, void* data)
= (void(*)(HeapCMallocType, void*))0x00000001403F2960;
static void(*HeapCMallocFreeByType)(HeapCMallocType type, void* data)
= (void(*)(HeapCMallocType, void*))0x0000000140182DB0;
};
static void* (*_operator_new)(size_t) = (void* (*)(size_t))0x000000014084530C;