Add HomeDir function
This commit is contained in:
parent
4ae938ada9
commit
4f1b3206c5
6 changed files with 92 additions and 21 deletions
24
raylib/utils_android.c
Normal file
24
raylib/utils_android.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue