You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
merged some stuff for okam
This commit is contained in:
@@ -29,16 +29,16 @@
|
||||
#include "file_access_android.h"
|
||||
#include "print_string.h"
|
||||
|
||||
#ifdef ANDROID_NATIVE_ACTIVITY
|
||||
|
||||
|
||||
|
||||
AAssetManager *FileAccessAndroid::asset_manager=NULL;
|
||||
|
||||
|
||||
void FileAccessAndroid::make_default() {
|
||||
/*void FileAccessAndroid::make_default() {
|
||||
|
||||
create_func=create_android;
|
||||
}
|
||||
}*/
|
||||
|
||||
FileAccess* FileAccessAndroid::create_android() {
|
||||
|
||||
@@ -46,7 +46,7 @@ FileAccess* FileAccessAndroid::create_android() {
|
||||
}
|
||||
|
||||
|
||||
Error FileAccessAndroid::open(const String& p_path, int p_mode_flags) {
|
||||
Error FileAccessAndroid::_open(const String& p_path, int p_mode_flags) {
|
||||
|
||||
String path=fix_path(p_path).simplify_path();
|
||||
if (path.begins_with("/"))
|
||||
@@ -55,7 +55,6 @@ Error FileAccessAndroid::open(const String& p_path, int p_mode_flags) {
|
||||
path=path.substr(6,path.length());
|
||||
|
||||
|
||||
|
||||
ERR_FAIL_COND_V(p_mode_flags&FileAccess::WRITE,ERR_UNAVAILABLE); //can't write on android..
|
||||
a=AAssetManager_open(asset_manager,path.utf8().get_data(),AASSET_MODE_STREAMING);
|
||||
if (!a)
|
||||
@@ -184,4 +183,4 @@ FileAccessAndroid::~FileAccessAndroid()
|
||||
{
|
||||
close();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user