From c49df74c6582bb0165a034c7aff94ba41399334a Mon Sep 17 00:00:00 2001 From: Erik Kunze Date: Sun, 11 Jun 2023 16:57:38 +0200 Subject: [PATCH] Simplify troubleshooting of games that are supposedly not found by logging the files that are skipped according to the RegEx. --- source/list/ListGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/list/ListGenerator.cpp b/source/list/ListGenerator.cpp index d4ed7230..57d0b76b 100644 --- a/source/list/ListGenerator.cpp +++ b/source/list/ListGenerator.cpp @@ -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; }