Merge pull request #466 from peace-maker/inform_customgd
Add info message when loading custom gamedata
This commit is contained in:
commit
8f4f0f61ea
@ -39,6 +39,7 @@
|
||||
#include <IHandleSys.h>
|
||||
#include <IMemoryUtils.h>
|
||||
#include <ISourceMod.h>
|
||||
#include <IRootConsoleMenu.h>
|
||||
#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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user