aboutsummaryrefslogtreecommitdiff
path: root/docs/user/AddingDebugKnobs.md
diff options
context:
space:
mode:
authorxbzk <xbzk@eden-emu.dev>2026-01-13 04:22:46 +0100
committercrueter <crueter@eden-emu.dev>2026-01-13 04:22:46 +0100
commit9c5203d922e4ca2b5bf7cb973dc702395201f683 (patch)
treeba3acdfba0867bdc2bff4b9202a07fc614369b60 /docs/user/AddingDebugKnobs.md
parentb1daffad196c98b306a197efa56d48584516da56 (diff)
[debug] added functions to enable access to debug knobs from kotlin side + docs (#3265)
Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3265 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: xbzk <xbzk@eden-emu.dev> Co-committed-by: xbzk <xbzk@eden-emu.dev>
Diffstat (limited to 'docs/user/AddingDebugKnobs.md')
-rw-r--r--docs/user/AddingDebugKnobs.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/user/AddingDebugKnobs.md b/docs/user/AddingDebugKnobs.md
index 914784d9df..bcf3f1fcc6 100644
--- a/docs/user/AddingDebugKnobs.md
+++ b/docs/user/AddingDebugKnobs.md
@@ -38,6 +38,7 @@ Common advantages recap:
Use the `Settings::getDebugKnobAt(u8 i)` function to check if a specific bit is set:
```cpp
+//cpp side
#include "common/settings.h"
// Check if bit 0 is set
@@ -47,6 +48,14 @@ bool feature_enabled = Settings::getDebugKnobAt(0);
bool another_feature = Settings::getDebugKnobAt(15);
```
+```kts
+//kotlin side
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+
+// Check if bit x is set
+bool feature_enabled = Settings.getDebugKnobAt(x); //x as integer from 0 to 15
+```
+
The function returns `true` if the specified bit (0-15) is set in the `debug_knobs` value, `false` otherwise.
### Setting Debug Knobs (user side)