Skip to content

Commit

Permalink
Merge pull request #356 from eku/enhancement/log_skipped_files
Browse files Browse the repository at this point in the history
Better logging for skipped files.
  • Loading branch information
Fledge68 authored Apr 9, 2024
2 parents c7e49fa + c49df74 commit 48fdaf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/list/ListGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 48fdaf5

Please sign in to comment.