aboutsummaryrefslogtreecommitdiff
path: root/docs/user/AddingDebugKnobs.md
diff options
context:
space:
mode:
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)