MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetDir

Function GetDir

src/openrct2-ui/interface/FileBrowser.cpp:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 u8string GetDir(const LoadSaveType type)
225 {
226 u8string result = GetLastDirectoryByType(type);
227 if (result.empty() || !Path::DirectoryExists(result))
228 {
229 result = GetInitialDirectoryByType(type);
230 }
231 return result;
232 }
233
234 void RegisterCallback(LoadSaveCallback callback, bool isJsCallback)
235 {

Callers 2

OpenPreferredFunction · 0.85
onOpenMethod · 0.85

Calls 4

GetLastDirectoryByTypeFunction · 0.85
DirectoryExistsFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected