diff options
author | Bil Bas (Spooner) <bil.bagpuss@gmail.com> | 2015-02-16 20:59:16 +0000 |
---|---|---|
committer | Bil Bas (Spooner) <bil.bagpuss@gmail.com> | 2015-02-16 20:59:16 +0000 |
commit | fba2d121b4f590d2c4f4ee1dd0eb4e2d712181d2 (patch) | |
tree | d2625dccd79ccb8404e8a365556c19a2015d8aa1 /drivers/unix/file_access_unix.cpp | |
parent | 2185c018f6593e6d64b2beb62202d2291e2e008e (diff) |
Corrected behaviour of File.READ_WRITE mode (fixes #378)
Diffstat (limited to 'drivers/unix/file_access_unix.cpp')
-rw-r--r-- | drivers/unix/file_access_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp index 7f85526852..2f91eee90e 100644 --- a/drivers/unix/file_access_unix.cpp +++ b/drivers/unix/file_access_unix.cpp @@ -74,7 +74,7 @@ Error FileAccessUnix::_open(const String& p_path, int p_mode_flags) { else if (p_mode_flags==WRITE) mode_string="wb"; else if (p_mode_flags==READ_WRITE) - mode_string="wb+"; + mode_string="rb+"; else return ERR_INVALID_PARAMETER; |