mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
I_Error if exchndl.dll is missing for Windows builds
This commit is contained in:
parent
216e4064dc
commit
afa62f2402
1 changed files with 9 additions and 6 deletions
|
|
@ -202,14 +202,17 @@ static void InitLogging(void)
|
|||
static void init_exchndl()
|
||||
{
|
||||
HMODULE exchndl_module = LoadLibraryA("exchndl.dll");
|
||||
if (exchndl_module != NULL)
|
||||
|
||||
if (exchndl_module == NULL)
|
||||
{
|
||||
using PFN_ExcHndlInit = void(*)(void);
|
||||
PFN_ExcHndlInit pfnExcHndlInit = reinterpret_cast<PFN_ExcHndlInit>(
|
||||
GetProcAddress(exchndl_module, "ExcHndlInit"));
|
||||
if (pfnExcHndlInit != NULL)
|
||||
(pfnExcHndlInit)();
|
||||
I_Error("exchndl.dll or mgwhelp.dll is missing");
|
||||
}
|
||||
|
||||
using PFN_ExcHndlInit = void(*)(void);
|
||||
PFN_ExcHndlInit pfnExcHndlInit = reinterpret_cast<PFN_ExcHndlInit>(
|
||||
GetProcAddress(exchndl_module, "ExcHndlInit"));
|
||||
if (pfnExcHndlInit != NULL)
|
||||
(pfnExcHndlInit)();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue