Keep only the LUT addition

This commit is contained in:
Giovanni Cocco committed 2024-09-26 19:15:17 +02:00
1 parent bff850dadd
commit 931eafd565
6 files changed
+4 -26

No files matched your search

+2 -2
View File
@@ -11,8 +11,8 @@ std::unordered_map<void*, ConfigSetting*>& ConfigSetting::getPtrLUT() {
return lut;
}
bool ConfigSetting::perGame(void* ptr) {
return g_Config.bGameSpecific && ConfigSetting::getPtrLUT().count(ptr) > 0 && ConfigSetting::getPtrLUT()[ptr]->PerGame();
bool ConfigSetting::perGame(void *ptr) {
return g_Config.bGameSpecific && getPtrLUT().count(ptr) > 0 && getPtrLUT()[ptr]->PerGame();
}
bool ConfigSetting::Get(const Section *section) const {
+2 -1
View File
@@ -227,7 +227,8 @@ struct ConfigSetting {
const Type type_;
static bool perGame(void* ptr);
// Returns false if per-game settings are not currently used
static bool perGame(void *ptr);
private:
CfgFlag flags_;