From edb820eae88d0016900adcd063a3c16b204cf4a4 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Sun, 3 Jan 2016 22:28:24 +0100 Subject: [PATCH] Add info message when loading custom gamedata Print a message to console when there is a gamedata file loaded from the |custom| folder. --- core/logic/GameConfigs.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/logic/GameConfigs.cpp b/core/logic/GameConfigs.cpp index 792db8a2..c5704be0 100644 --- a/core/logic/GameConfigs.cpp +++ b/core/logic/GameConfigs.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include "common_logic.h" #include "sm_crc32.h" #include "MemoryUtils.h" @@ -805,7 +806,12 @@ bool CGameConfig::Reparse(char *error, size_t maxlength) if (libsys->PathExists(path)) { ke::SafeSprintf(path, sizeof(path), "custom/%s.txt", m_File); - return EnterFile(path, error, maxlength); + bool success = EnterFile(path, error, maxlength); + if (success) + { + rootmenu->ConsolePrint("[SM] Parsed custom gamedata override file: %s", path); + } + return success; } return true; } @@ -885,6 +891,8 @@ bool CGameConfig::Reparse(char *error, size_t maxlength) return false; } + rootmenu->ConsolePrint("[SM] Parsed custom gamedata override file: %s", path); + customDir->NextEntry(); }