Fixes Android Build.
This commit is contained in:
parent
5f6a1638d6
commit
71fb7cea45
1 changed files with 4 additions and 4 deletions
|
|
@ -3068,14 +3068,14 @@ DLL_GIVEFNPTRSTODLL GiveFnptrsToDll (enginefuncs_t *functionTable, globalvars_t
|
||||||
|
|
||||||
g_gameLib = new Library (gameDLLName);
|
g_gameLib = new Library (gameDLLName);
|
||||||
|
|
||||||
if (!g_gameLib->IsLoaded ()) {
|
if (!g_gameLib->isValid ()) {
|
||||||
logEntry (true, LL_FATAL | LL_IGNORE, "Unable to load gamedll \"%s\". Exiting... (gamedir: %s)", gameDLLName, engine.GetModName ());
|
logEntry (true, LL_FATAL | LL_IGNORE, "Unable to load gamedll \"%s\". Exiting... (gamedir: %s)", gameDLLName, engine.getModName ());
|
||||||
delete g_gameLib;
|
delete g_gameLib;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
g_gameLib = LoadCSBinary ();
|
g_gameLib = LoadCSBinary ();
|
||||||
{
|
{
|
||||||
if (g_gameLib == nullptr && !(g_gameFlags & GAME_METAMOD)) {
|
if (!g_gameLib && !(g_gameFlags & GAME_METAMOD)) {
|
||||||
logEntry (true, LL_FATAL | LL_IGNORE, "Mod that you has started, not supported by this bot (gamedir: %s)", engine.getModName ());
|
logEntry (true, LL_FATAL | LL_IGNORE, "Mod that you has started, not supported by this bot (gamedir: %s)", engine.getModName ());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue