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

Function GetFullPath

source/Utilities.cpp:344–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344static std::string GetFullPath(LPCSTR szFileName)
345{
346 std::string strPathName;
347
348 if (szFileName[0] == PATH_SEPARATOR || szFileName[1] == ':')
349 {
350 // Abs pathname
351 strPathName = szFileName;
352 }
353 else
354 {
355 // Rel pathname (GH#663)
356 strPathName = g_sStartDir;
357 strPathName.append(szFileName);
358 }
359
360 return strPathName;
361}
362
363static void SetCurrentDir(const std::string & pathname)
364{

Callers 2

DoDiskInsertFunction · 0.85
DoHardDiskInsertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected