1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Implemented get_path() & get_path_absolute() for FileAccessEncrypted

This commit is contained in:
PouleyKetchoupp
2019-09-07 19:22:33 +02:00
parent d1a062662f
commit afe34344a6
2 changed files with 19 additions and 0 deletions

View File

@@ -176,6 +176,22 @@ bool FileAccessEncrypted::is_open() const {
return file != NULL;
}
String FileAccessEncrypted::get_path() const {
if (file)
return file->get_path();
else
return "";
}
String FileAccessEncrypted::get_path_absolute() const {
if (file)
return file->get_path_absolute();
else
return "";
}
void FileAccessEncrypted::seek(size_t p_position) {
if (p_position > (size_t)data.size())