diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-12-06 20:25:41 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-12-06 20:46:38 +0100 |
commit | 7fb9508cfa65c6abb678c1f218528192dd617ba4 (patch) | |
tree | bff3967feea22404f39bde00639f08d7fb8cc1bb /core/os/file_access.h | |
parent | 7459ade29873473bc08dd3e0aa78d8374d08e5c8 (diff) | |
download | redot-engine-7fb9508cfa65c6abb678c1f218528192dd617ba4.tar.gz |
Fix Windows-to-Linux export error
Now chmod() returns ERR_UNAVAILABLE by default, to signal the caller the problem is lack of support instead of a failed operation.
Diffstat (limited to 'core/os/file_access.h')
-rw-r--r-- | core/os/file_access.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/file_access.h b/core/os/file_access.h index 455dd1ea99..6fda3d9668 100644 --- a/core/os/file_access.h +++ b/core/os/file_access.h @@ -141,7 +141,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) { return FAILED; } + virtual Error _chmod(const String &p_path, int p_mod) { return ERR_UNAVAILABLE; } 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); |