MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / GetModuleDirectory

Function GetModuleDirectory

src/OSTPlatform/Windows/DynamicLibrary.cpp:119–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119std::filesystem::path GetModuleDirectory(ModuleHandle module) {
120 return ModuleFilePath(reinterpret_cast<HMODULE>(module), "GetModuleDirectory").parent_path();
121}
122
123std::filesystem::path GetMainExecutablePath() {
124 return ModuleFilePath(nullptr, "GetMainExecutablePath");

Callers 1

InitFunction · 0.85

Calls 1

ModuleFilePathFunction · 0.85

Tested by

no test coverage detected