prj::HeapCMallocType in file_handler
This commit is contained in:
@@ -30,11 +30,11 @@ ssize_t p_file_handler::get_size() {
|
||||
return p_file_handler__get_size(this);
|
||||
}
|
||||
|
||||
bool p_file_handler::read_file(const char* farc_path, const char* file_path, int32_t heap_malloc_type, bool cache) {
|
||||
bool p_file_handler::read_file(const char* farc_path, const char* file_path, prj::HeapCMallocType heap_malloc_type, bool cache) {
|
||||
static bool (FASTCALL * p_file_handler__read_file)(p_file_handler * pfhndl, const char* farc_path,
|
||||
const char* file_path, int32_t heap_malloc_type, bool cache)
|
||||
const char* file_path, prj::HeapCMallocType heap_malloc_type, bool cache)
|
||||
= (bool (FASTCALL*)(p_file_handler * pfhndl, const char* farc_path,
|
||||
const char* file_path, int32_t heap_malloc_type, bool cache))0x0000000140183430;
|
||||
const char* file_path, prj::HeapCMallocType heap_malloc_type, bool cache))0x0000000140183430;
|
||||
return p_file_handler__read_file(this, farc_path, file_path, heap_malloc_type, cache);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <thread>
|
||||
#include "../KKdLib/default.hpp"
|
||||
#include "../KKdLib/farc.hpp"
|
||||
#include "types.hpp"
|
||||
|
||||
typedef void (PFNFILEHANDLERCALLBACK)(void*, const void*);
|
||||
|
||||
@@ -28,7 +29,7 @@ struct p_file_handler {
|
||||
bool check_not_ready();
|
||||
const void* get_data();
|
||||
ssize_t get_size();
|
||||
bool read_file(const char* farc_path, const char* file_path, int32_t heap_malloc_type, bool cache);
|
||||
bool read_file(const char* farc_path, const char* file_path, prj::HeapCMallocType heap_malloc_type, bool cache);
|
||||
void read_now();
|
||||
void reset();
|
||||
void set_callback_data(int32_t index, PFNFILEHANDLERCALLBACK* func, void* data);
|
||||
|
||||
Reference in New Issue
Block a user