diff options
| author | xbzk <xbzk@eden-emu.dev> | 2025-11-25 00:41:45 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-11-25 00:41:45 +0100 |
| commit | e63f71c787ab955b48950dc9414625e15dc0980c (patch) | |
| tree | 4e9f96115e01f02c67a9ddaf890135fe50188705 /src/common/settings.cpp | |
| parent | 027085e5ba1c86c10805cd74fa728243da759cbf (diff) | |
[android, qt] 16 bit debug knob set for quick development toggles (#3076)
**Aims to dismiss the needing of developers to wait for someone to provide new toggles only to test temporary stuff**
This is a classic debug knob set for development use.
Developers will be able to call Settings::getDebugKnobAt(0 to 15) to pick one of the 16 bits of that setting, allowing users to easily enable or disable multiple features in testing builds, by entering values instructed by the developers.
Co-authored-by: Allison Cunha <allisonbzk@gmail.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3076
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Co-authored-by: xbzk <xbzk@eden-emu.dev>
Co-committed-by: xbzk <xbzk@eden-emu.dev>
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 56b65c527c..d3f7d9afea 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -141,6 +141,10 @@ void LogSettings() { log_path("DataStorage_SDMCDir", Common::FS::GetEdenPath(Common::FS::EdenPath::SDMCDir)); } +bool getDebugKnobAt(u8 i) { + return (values.debug_knobs.GetValue() & (1 << (i & 0xF))) != 0; +} + void UpdateGPUAccuracy() { values.current_gpu_accuracy = values.gpu_accuracy.GetValue(); } |
