MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setCurrentDirectory

Method setCurrentDirectory

Engine/source/platformPOSIX/POSIXFileio.cpp:945–956  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

943
944//-----------------------------------------------------------------------------
945bool Platform::setCurrentDirectory(StringTableEntry newDir)
946{
947 if (Platform::getWebDeployment())
948 return true;
949
950 TempAlloc< UTF8 > buf( dStrlen( newDir ) + 2 );
951
952 dStrcpy( buf, newDir, buf.size );
953
954 ForwardSlash( buf );
955 return chdir( buf ) == 0;
956}
957
958//-----------------------------------------------------------------------------
959const char *Platform::getUserDataDirectory()

Callers

nothing calls this directly

Calls 3

dStrcpyFunction · 0.85
ForwardSlashFunction · 0.85
dStrlenFunction · 0.50

Tested by

no test coverage detected