浏览代码

Merge pull request #11427 from marcelofg55/fix_chmod_return

Fix base _chmod return value

[ci skip]
Rémi Verschelde 8 年之前
父节点
当前提交
d344fb6089
共有 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 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(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);
 	static FileAccess *create_for_path(const String &p_path);