From 45ee5878397822c41b9109d0e3bc2d635c8c8634 Mon Sep 17 00:00:00 2001 From: Luca Sas Date: Thu, 1 Oct 2020 19:17:58 +0100 Subject: Updated to raylib 3.0 --- libs/raylib/src/utils.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'libs/raylib/src/utils.h') diff --git a/libs/raylib/src/utils.h b/libs/raylib/src/utils.h index 31c54aa..675f43b 100644 --- a/libs/raylib/src/utils.h +++ b/libs/raylib/src/utils.h @@ -32,6 +32,19 @@ #include // Required for: AAssetManager #endif +#if defined(SUPPORT_TRACELOG) + #define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__) + + #if defined(SUPPORT_TRACELOG_DEBUG) + #define TRACELOGD(...) TraceLog(LOG_DEBUG, __VA_ARGS__) + #else + #define TRACELOGD(...) (void)0 + #endif +#else + #define TRACELOG(level, ...) (void)0 + #define TRACELOGD(...) (void)0 +#endif + //---------------------------------------------------------------------------------- // Some basic Defines //---------------------------------------------------------------------------------- @@ -55,8 +68,8 @@ extern "C" { // Prevents name mangling of functions // Module Functions Declaration //---------------------------------------------------------------------------------- #if defined(PLATFORM_ANDROID) -void InitAssetManager(AAssetManager *manager); // Initialize asset manager from android app -FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() +void InitAssetManager(AAssetManager *manager, const char *dataPath); // Initialize asset manager from android app +FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() -> Read-only! #endif #if defined(PLATFORM_UWP) -- cgit v1.2.3