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
|
|
@ -204,8 +204,8 @@ void test(TestType p_type) {
|
|||
return;
|
||||
}
|
||||
|
||||
FileAccessRef fa = FileAccess::open(test, FileAccess::READ);
|
||||
ERR_FAIL_COND_MSG(!fa, "Could not open file: " + test);
|
||||
Ref<FileAccess> fa = FileAccess::open(test, FileAccess::READ);
|
||||
ERR_FAIL_COND_MSG(fa.is_null(), "Could not open file: " + test);
|
||||
|
||||
// Initialize the language for the test routine.
|
||||
init_language(fa->get_path_absolute().get_base_dir());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue