Skip to content

Commit

Permalink
Updated DLL version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Feb 25, 2020
1 parent 2caaf7f commit 8f98d1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Client/loader/MainFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,24 +903,23 @@ void CheckDataFiles()
void CheckLibVersions()
{
#if MTASA_VERSION_TYPE == VERSION_TYPE_RELEASE

#ifndef MTA_DEBUG
const char* moduleList[] = {"MTA\\loader.dll",
"MTA\\cgui.dll",
"MTA\\cefweb.dll",
"MTA\\core.dll",
"MTA\\game_sa.dll",
"MTA\\multiplayer_sa.dll",
"MTA\\netc.dll",
"MTA\\pthread.dll",
"MTA\\winmm.dll",
"MTA\\xmll.dll",
"MTA\\game_sa.dll",
"mods\\deathmatch\\client.dll",
"mods\\deathmatch\\pcre3.dll"};
SString strReqFileVersion;
for (uint i = 0; i < NUMELMS(moduleList); i++)
{
SString strFilename = moduleList[i];
#ifdef MTA_DEBUG
strFilename = ExtractBeforeExtension(strFilename) + "_d." + ExtractExtension(strFilename);
#endif
SLibVersionInfo fileInfo;
if (FileExists(CalcMTASAPath(strFilename)))
{
Expand Down Expand Up @@ -949,6 +948,7 @@ void CheckLibVersions()
}
}

#endif
#endif

if (GetSystemMetrics(SM_CLEANBOOT) != 0)
Expand Down

0 comments on commit 8f98d1e

Please sign in to comment.