MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / _open_filesystem

Method _open_filesystem

utility/file_access_gdre.cpp:1079–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079Ref<DirAccess> DirAccessGDRE::_open_filesystem() {
1080 // DirAccessGDRE is only made default for DirAccess::ACCESS_RESOURCES
1081#if DEBUG_ENABLED
1082 WARN_PRINT("opening filesystem path in DirAccessGDRE...");
1083#endif
1084 String path = GDRESettings::get_singleton()->get_project_path();
1085 if (path == "") {
1086 path = "res://";
1087 }
1088 Ref<DirAccessProxy<DIR_ACCESS_OS>> dir_proxy = memnew(DirAccessProxy<DIR_ACCESS_OS>);
1089 dir_proxy->change_dir(path);
1090 return dir_proxy;
1091}
1092
1093void GDREPackedData::set_default_file_access() {
1094 if (set_file_access_defaults) {

Callers

nothing calls this directly

Calls 3

get_project_pathMethod · 0.80
change_dirMethod · 0.80
open_internalMethod · 0.45

Tested by

no test coverage detected