From 696d842b0772fe71ad413ddd3c0ce743e359f0c0 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Fri, 15 Jan 2016 18:06:46 +0100 Subject: [PATCH] Add info message when loading custom gamedata --- amxmodx/CGameConfigs.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/amxmodx/CGameConfigs.cpp b/amxmodx/CGameConfigs.cpp index 6a7a6202..e60895b2 100644 --- a/amxmodx/CGameConfigs.cpp +++ b/amxmodx/CGameConfigs.cpp @@ -651,7 +651,15 @@ bool CGameConfig::Reparse(char *error, size_t maxlength) if (g_LibSys.PathExists(path)) { 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; } @@ -718,6 +726,8 @@ bool CGameConfig::Reparse(char *error, size_t maxlength) return false; } + AMXXLOG_Log("[AMXX] Parsed custom gamedata override file: %s", path); + customDir->NextEntry(); }