| 36 | } |
| 37 | |
| 38 | void 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 | } |
nothing calls this directly
no test coverage detected