Update platform_android.go
This commit is contained in:
parent
c479f25e2b
commit
e5cbd25b4f
1 changed files with 2 additions and 3 deletions
|
@ -7,15 +7,14 @@ package rl
|
||||||
#include "raylib.h"
|
#include "raylib.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <android/asset_manager.h>
|
#include <android/asset_manager.h>
|
||||||
#include <android/native_activity.h>
|
|
||||||
#include <android_native_app_glue.h>
|
#include <android_native_app_glue.h>
|
||||||
|
|
||||||
extern void android_init();
|
extern void android_init();
|
||||||
extern struct ANativeActivity *GetANativeActivity(void);
|
extern struct android_app *GetAndroidApp(void);
|
||||||
|
|
||||||
static AAssetManager* asset_manager;
|
static AAssetManager* asset_manager;
|
||||||
static const char* getInternalStoragePath(){
|
static const char* getInternalStoragePath(){
|
||||||
return GetANativeActivity()->internalDataPath;
|
return GetAndroidApp()->activity->internalDataPath;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue