Add HomeDir function

This commit is contained in:
Milan Nikolic 2017-02-13 23:01:34 +01:00
parent 4ae938ada9
commit 4f1b3206c5
6 changed files with 92 additions and 21 deletions

24
raylib/utils_android.c Normal file
View file

@ -0,0 +1,24 @@
// +build android
#include "_cgo_export.h"
#include <android/log.h>
void log_info(const char *msg) {
__android_log_print(ANDROID_LOG_INFO, "raylib", msg);
}
void log_warn(const char *msg) {
__android_log_print(ANDROID_LOG_WARN, "raylib", msg);
}
void log_error(const char *msg) {
__android_log_print(ANDROID_LOG_ERROR, "raylib", msg);
}
void log_debug(const char *msg) {
__android_log_print(ANDROID_LOG_DEBUG, "raylib", msg);
}
const char* get_internal_storage_path() {
return internal_storage_path;
}