feat(Windows64): safely exit game & get monitors size that has the game window instead of primary

This commit is contained in:
str1k3r committed 2026-08-12 18:18:41 -04:00
1 parent bd0cc59a54
commit 82783c0812
5 files changed
+75 -91

No files matched your search

+2
View File
@@ -67,7 +67,9 @@ void StatsCounter::award(Stat* stat, unsigned int difficulty, unsigned int count
unordered_map<Stat*, int>::iterator leaderboardEntry = statBoards.find(stat);
if( leaderboardEntry != statBoards.end() )
{
#ifdef _DEBUG
app.DebugPrintf("[StatsCounter] award(): %X\n", leaderboardEntry->second << difficulty);
#endif
modifiedBoards |= (leaderboardEntry->second << difficulty);
if( flushCounter == 0 )
flushCounter = FLUSH_DELAY;