MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SetCurrentImageDir

Function SetCurrentImageDir

source/Core.cpp:304–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304bool SetCurrentImageDir(const std::string& pszImageDir)
305{
306 g_sCurrentDir = pszImageDir;
307
308 if (!g_sCurrentDir.empty() && *g_sCurrentDir.rbegin() != PATH_SEPARATOR)
309 g_sCurrentDir += PATH_SEPARATOR;
310
311 if (SetCurrentDirectory(g_sCurrentDir.c_str()))
312 return true;
313
314 return false;
315}
316
317Pravets& GetPravets(void)
318{

Callers 4

LoadConfigurationFunction · 0.85
SetCurrentDirFunction · 0.85
CmdConfigSetDebugDirFunction · 0.85
RepeatInitializationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected