You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix issue preventing the Android Editor from displaying the project content
The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached.
This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.
(cherry picked from commit 30479543b0)
This commit is contained in:
committed by
Rémi Verschelde
parent
7c349574d7
commit
a7a8f9c85d
@@ -44,6 +44,7 @@ class FileAccessFilesystemJAndroid : public FileAccess {
|
||||
static jmethodID _file_seek_end;
|
||||
static jmethodID _file_tell;
|
||||
static jmethodID _file_eof;
|
||||
static jmethodID _file_set_eof;
|
||||
static jmethodID _file_read;
|
||||
static jmethodID _file_write;
|
||||
static jmethodID _file_flush;
|
||||
@@ -55,6 +56,8 @@ class FileAccessFilesystemJAndroid : public FileAccess {
|
||||
String absolute_path;
|
||||
String path_src;
|
||||
|
||||
void _set_eof(bool eof);
|
||||
|
||||
public:
|
||||
virtual Error _open(const String &p_path, int p_mode_flags) override; ///< open a file
|
||||
virtual void close() override; ///< close a file
|
||||
|
||||
Reference in New Issue
Block a user