aboutsummaryrefslogtreecommitdiff
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-10-17 22:09:19 +0200
committercrueter <crueter@eden-emu.dev>2025-10-17 22:09:19 +0200
commitc0fb872d1a63bacca6cfc5528de140fa363191ba (patch)
tree7939efa279a8c5f63ca6adb4a9cb0e42a4bb90b8 /src/common/settings.cpp
parent171a1d23e4d1e65a5932de58277917c22a7d4fc8 (diff)
[arm] Add "debugging" cpu accuracy option to replace CPU debug toggle (#2640)
The debug toggle and the CPU accuracy options are mutually exclusive, if debug toggle on => cpu accuracy is ignored, if debug toggle off => cpu accuracy is used. So just add it to cpu accuracy and avoid the extra hassle. Signed-off-by: lizzie <lizzie@eden-emu.dev> Co-authored-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2640 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r--src/common/settings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index b849d7cb6a..e817acc36e 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -163,11 +163,11 @@ bool IsDMALevelSafe() {
}
bool IsFastmemEnabled() {
- if (values.cpu_debug_mode) {
- return static_cast<bool>(values.cpuopt_fastmem);
+ if (values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Debugging) {
+ return bool(values.cpuopt_fastmem);
}
if (values.cpu_accuracy.GetValue() == CpuAccuracy::Unsafe) {
- return static_cast<bool>(values.cpuopt_unsafe_host_mmu);
+ return bool(values.cpuopt_unsafe_host_mmu);
}
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun__)
return false;