common: utils: add util to get executableDir

pull/239/head
Peter Repukat 1 year ago
parent efe12dc333
commit 0e356801e7

@ -73,6 +73,14 @@ namespace util {
std::filesystem::create_directories(path); std::filesystem::create_directories(path);
return path; return path;
} }
inline std::filesystem::path getGlosSIDir()
{
wchar_t result[MAX_PATH];
std::filesystem::path res{ std::wstring{result, GetModuleFileNameW(NULL, result, MAX_PATH)} };
return res.parent_path();
}
} }
#ifdef _WIN32 #ifdef _WIN32

Loading…
Cancel
Save