| 1077 | } |
| 1078 | |
| 1079 | Ref<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 | |
| 1093 | void GDREPackedData::set_default_file_access() { |
| 1094 | if (set_file_access_defaults) { |
nothing calls this directly
no test coverage detected