mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
per game settings UI PoC
This commit is contained in:
1 parent
c4076e359d
commit
bff850dadd
6 files changed
+57
-3
No files matched your search
@@ -4,6 +4,16 @@
|
||||
|
||||
#include "Core/ConfigSettings.h"
|
||||
#include "Core/ConfigValues.h"
|
||||
#include "Core/Config.h"
|
||||
|
||||
std::unordered_map<void*, ConfigSetting*>& ConfigSetting::getPtrLUT() {
|
||||
static std::unordered_map<void*, ConfigSetting*> lut;
|
||||
return lut;
|
||||
}
|
||||
|
||||
bool ConfigSetting::perGame(void* ptr) {
|
||||
return g_Config.bGameSpecific && ConfigSetting::getPtrLUT().count(ptr) > 0 && ConfigSetting::getPtrLUT()[ptr]->PerGame();
|
||||
}
|
||||
|
||||
bool ConfigSetting::Get(const Section *section) const {
|
||||
switch (type_) {
|
||||
|
||||
Reference in new issue
Block a user