MCPcopy Create free account
hub / github.com/RussellJerome/UnrealModLoader / LoadModLoader

Method LoadModLoader

LoaderAutoInjector/Loader/Loader.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void Loader::LoadModLoader()
39{
40 auto Module = GetModuleHandleA(0);
41 std::string path = GetModuleFilePath(Module);
42 path = path.substr(0, path.find_last_of("/\\"));
43 auto LoaderInfoInI = path + "\\ModLoaderInfo.ini";
44 INI::PARSE_FLAGS = INI::PARSE_COMMENTS_ALL | INI::PARSE_COMMENTS_SLASH | INI::PARSE_COMMENTS_HASH;
45 INI LoaderInfo(LoaderInfoInI, true);
46 LoaderInfo.select("INFO");
47 auto ModLoaderDLLPath = LoaderInfo.get("INFO", "LoaderPath", "");
48 InjectDLL(ModLoaderDLLPath);
49}

Callers

nothing calls this directly

Calls 4

selectMethod · 0.80
getMethod · 0.80
GetModuleFilePathFunction · 0.70
InjectDLLFunction · 0.70

Tested by

no test coverage detected