1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

[FileAccess] Implement get_size and get_access_time methods.

This commit is contained in:
bruvzg
2023-10-17 10:47:58 +03:00
committed by Pāvels Nadtočajevs
parent b5bdb88062
commit 85d3be8070
25 changed files with 359 additions and 9 deletions

View File

@@ -132,6 +132,10 @@ uint64_t FileAccessAndroid::get_buffer(uint8_t *p_dst, uint64_t p_length) const
return r;
}
int64_t FileAccessAndroid::_get_size(const String &p_file) {
return AAsset_getLength64(asset);
}
Error FileAccessAndroid::get_error() const {
return eof ? ERR_FILE_EOF : OK; // not sure what else it may happen
}