mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
-Added a new mode, WRITE_READ to File, to recover compatibility with old projects but also achieve desired functionality. Closes #3272
This commit is contained in:
parent
4fdab4f555
commit
52e53d4513
5 changed files with 7 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ 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="rb+";
|
||||
else if (p_mode_flags==WRITE_READ)
|
||||
mode_string="wb+";
|
||||
else
|
||||
return ERR_INVALID_PARAMETER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue