Add info message when loading custom gamedata
Print a message to console when there is a gamedata file loaded from the |custom| folder.
This commit is contained in:
parent
497b51814d
commit
edb820eae8
@ -39,6 +39,7 @@
|
|||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
#include <IMemoryUtils.h>
|
#include <IMemoryUtils.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
|
#include <IRootConsoleMenu.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "sm_crc32.h"
|
#include "sm_crc32.h"
|
||||||
#include "MemoryUtils.h"
|
#include "MemoryUtils.h"
|
||||||
@ -805,7 +806,12 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
|
|||||||
if (libsys->PathExists(path))
|
if (libsys->PathExists(path))
|
||||||
{
|
{
|
||||||
ke::SafeSprintf(path, sizeof(path), "custom/%s.txt", m_File);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
@ -885,6 +891,8 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rootmenu->ConsolePrint("[SM] Parsed custom gamedata override file: %s", path);
|
||||||
|
|
||||||
customDir->NextEntry();
|
customDir->NextEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user