2
0
Эх сурвалжийг харах

Fix base _chmod return value

Marcelo Fernandez 8 жил өмнө
parent
commit
ad37dbfec2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      core/os/file_access.h

+ 1 - 1
core/os/file_access.h

@@ -139,7 +139,7 @@ public:
 
 	virtual Error reopen(const String &p_path, int p_mode_flags); ///< does not change the AccessType
 
-	virtual Error _chmod(const String &p_path, int p_mod) {}
+	virtual Error _chmod(const String &p_path, int p_mod) { return FAILED; }
 
 	static FileAccess *create(AccessType p_access); /// Create a file access (for the current platform) this is the only portable way of accessing files.
 	static FileAccess *create_for_path(const String &p_path);