From e63f71c787ab955b48950dc9414625e15dc0980c Mon Sep 17 00:00:00 2001 From: xbzk Date: Tue, 25 Nov 2025 00:41:45 +0100 Subject: [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 Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3076 Reviewed-by: Lizzie Reviewed-by: MaranBr Reviewed-by: Caio Oliveira Co-authored-by: xbzk Co-committed-by: xbzk --- src/common/settings.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/settings.cpp') 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(); } -- cgit v1.2.3