mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
parent
ca9372622f
commit
9381acb6a4
193 changed files with 1122 additions and 1776 deletions
|
|
@ -164,7 +164,7 @@ void ScriptEditorDebugger::_file_selected(const String &p_file) {
|
|||
switch (file_dialog_purpose) {
|
||||
case SAVE_MONITORS_CSV: {
|
||||
Error err;
|
||||
FileAccessRef file = FileAccess::open(p_file, FileAccess::WRITE, &err);
|
||||
Ref<FileAccess> file = FileAccess::open(p_file, FileAccess::WRITE, &err);
|
||||
|
||||
if (err != OK) {
|
||||
ERR_PRINT("Failed to open " + p_file);
|
||||
|
|
@ -209,7 +209,7 @@ void ScriptEditorDebugger::_file_selected(const String &p_file) {
|
|||
} break;
|
||||
case SAVE_VRAM_CSV: {
|
||||
Error err;
|
||||
FileAccessRef file = FileAccess::open(p_file, FileAccess::WRITE, &err);
|
||||
Ref<FileAccess> file = FileAccess::open(p_file, FileAccess::WRITE, &err);
|
||||
|
||||
if (err != OK) {
|
||||
ERR_PRINT("Failed to open " + p_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue