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

Method getCurrentDirectory

Engine/source/platformWin32/winFileio.cpp:808–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806//}
807
808StringTableEntry Platform::getCurrentDirectory()
809{
810 TempAlloc< TCHAR > buf( 2048 );
811
812 GetCurrentDirectory( buf.size, buf );
813 forwardslash( buf );
814
815#ifdef UNICODE
816 char* utf8 = createUTF8string( buf );
817 StringTableEntry result = StringTable->insert( utf8 );
818 SAFE_DELETE_ARRAY( utf8 );
819 return result;
820#else
821 return StringTable->insert( buf );
822#endif
823}
824
825bool Platform::setCurrentDirectory(StringTableEntry newDir)
826{

Callers

nothing calls this directly

Calls 3

createUTF8stringFunction · 0.85
forwardslashFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected