Merge pull request #356 from eku/enhancement/log_skipped_files

Better logging for skipped files.
This commit is contained in:
Fledge68 2024-04-09 13:14:26 -05:00 committed by GitHub
commit 48fdaf50e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ void ListGenerator::Init(const char *settingsDir, const char *Language,
if(Language != NULL) gameTDB_Language = Language;
if(plgnsDataDir != NULL) pluginsDataDir = fmt("%s", plgnsDataDir);
gprintf("ListGenerator: fileNameSkipPattern=%s\n", fileNameSkipPattern.c_str());
fileNameSkipRegex = std::regex(fileNameSkipPattern,
std::regex_constants::extended |
std::regex_constants::icase);
@ -276,7 +277,7 @@ static void Add_Plugin_Game(char *FullPath)
if (std::regex_search(std::string(FullPath), fileNameSkipRegex))
{
//gprintf("Add_Plugin_Game: skipping '%s'\n", FullPath);
gprintf("Add_Plugin_Game: skipping '%s'\n", FullPath);
return;
}