diff --git a/src/DivaGL/file_handler.cpp b/src/DivaGL/file_handler.cpp index 55f76a4..1947937 100644 --- a/src/DivaGL/file_handler.cpp +++ b/src/DivaGL/file_handler.cpp @@ -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); } diff --git a/src/DivaGL/file_handler.hpp b/src/DivaGL/file_handler.hpp index d46406a..d332874 100644 --- a/src/DivaGL/file_handler.hpp +++ b/src/DivaGL/file_handler.hpp @@ -12,6 +12,7 @@ #include #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);