You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
#include <mntent.h>
|
||||
#endif
|
||||
|
||||
DirAccess *DirAccessUnix::create_fs() {
|
||||
Ref<DirAccess> DirAccessUnix::create_fs() {
|
||||
return memnew(DirAccessUnix);
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
String DirAccessUnix::get_current_dir(bool p_include_drive) {
|
||||
String DirAccessUnix::get_current_dir(bool p_include_drive) const {
|
||||
String base = _get_root_path();
|
||||
if (!base.is_empty()) {
|
||||
String bd = current_dir.replace_first(base, "");
|
||||
|
||||
Reference in New Issue
Block a user