Add callbacks to allow an application to override file reading in raylib with it's own code.

This commit is contained in:
Jeffery Myers 2020-12-31 13:00:40 -08:00
commit 8cbdf2c69b

View file

@ -27,6 +27,12 @@
#ifndef UTILS_H
#define UTILS_H
// internal loader functions that may or may not call the virtual file system
unsigned char* RLLoadFileData(const char* fileName, unsigned int* bytesRead);
void RLUnloadFileData(unsigned char* data);
char* RLLoadFileText(const char* fileName);
void RLUnloadFileText(unsigned char* text);
#if defined(PLATFORM_ANDROID)
#include <stdio.h> // Required for: FILE
#include <android/asset_manager.h> // Required for: AAssetManager