Add info message when loading custom gamedata

This commit is contained in:
Arkshine 2016-01-15 18:06:46 +01:00
parent 33768740fa
commit 696d842b07

View File

@ -651,7 +651,15 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
if (g_LibSys.PathExists(path)) if (g_LibSys.PathExists(path))
{ {
g_LibSys.PathFormat(path, sizeof(path), "custom/%s.txt", m_File); g_LibSys.PathFormat(path, sizeof(path), "custom/%s.txt", m_File);
return EnterFile(path, error, maxlength);
auto success = EnterFile(path, error, maxlength);
if (success)
{
AMXXLOG_Log("[AMXX] Parsed custom gamedata override file: %s", path);
}
return success;
} }
return true; return true;
} }
@ -718,6 +726,8 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
return false; return false;
} }
AMXXLOG_Log("[AMXX] Parsed custom gamedata override file: %s", path);
customDir->NextEntry(); customDir->NextEntry();
} }