MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetExecutablePath

Method SetExecutablePath

Engine/source/EtCore/FileSystem/FileUtil.cpp:234–248  ·  view source on GitHub ↗

--------------------------------- FileUtil::SetExecutablePath Sets the base path the executable lives in

Source from the content-addressed store, hash-verified

232// Sets the base path the executable lives in
233//
234void FileUtil::SetExecutablePath(std::string const& inPath)
235{
236 std::string path;
237#ifdef PLATFORM_Win
238 GetExecutablePathName(path);
239#else
240 path = inPath;
241#endif
242
243 ET_ASSERT(IsAbsolutePath(path));
244
245 // set the executable path to the part without the exe name
246 s_ExePath = ExtractPath(path);
247 UnifyPathDelimiters(s_ExePath);
248}
249
250//---------------------------------
251// FileUtil::SetCompiledData

Callers

nothing calls this directly

Calls 1

GetExecutablePathNameFunction · 0.85

Tested by

no test coverage detected