GameTracker.cpp: fix compilation with Clang on Windows

This commit is contained in:
oltolm 2025-04-14 00:18:12 +02:00
parent 5cb9ac0b3a
commit 41953d3519
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,9 @@
#include "UICommon/GameFile.h"
#pragma push_macro("RemoveDirectory")
#undef RemoveDirectory
// NOTE: Qt likes to be case-sensitive here even though it shouldn't be thus this ugly regex hack
static const QStringList game_filters{
QStringLiteral("*.[gG][cC][mM]"), QStringLiteral("*.[iI][sS][oO]"),
@ -369,3 +372,5 @@ void GameTracker::PurgeCache()
m_needs_purge = true;
Settings::Instance().RefreshGameList();
}
#pragma pop_macro("RemoveDirectory")