| 843 | } |
| 844 | |
| 845 | String DirAccessGDRE::get_current_dir(bool p_include_drive) const { |
| 846 | if (proxy.is_valid()) { |
| 847 | return proxy->get_current_dir(p_include_drive); |
| 848 | } |
| 849 | if (!current) { |
| 850 | return ""; |
| 851 | } |
| 852 | GDREPackedData::PackedDir *pd = current; |
| 853 | String p = current->name; |
| 854 | |
| 855 | while (pd->parent) { |
| 856 | pd = pd->parent; |
| 857 | p = pd->name.path_join(p); |
| 858 | } |
| 859 | |
| 860 | return "res://" + p; |
| 861 | } |
| 862 | |
| 863 | bool DirAccessGDRE::file_exists(String p_file) { |
| 864 | if (proxy.is_valid()) { |
no test coverage detected