aboutsummaryrefslogtreecommitdiff
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorMaranBr <maranbr@outlook.com>2025-08-27 23:02:46 +0200
committercrueter <crueter@eden-emu.dev>2025-08-27 23:02:46 +0200
commit7f482d0730a8e954ab6f6dc6e18f2c1ed09a0ebb (patch)
tree9254812ec0688614c77625771c00770e8c1c39e7 /src/common/settings.cpp
parent9d53933a9533bb99887e508a25e8609187de8ed3 (diff)
[core] Add option to control Host MMU Emulation (#324)
This adds an option to enable or disable Host MMU Emulation [Android/PC], brings better config per-game handling with Disable Buffer Reorder, disables Flush Debug Lines by Log, option which was enabled by default on Android/PC taxing performance and translates to all supported languages the recent changes. Leaves room for NCE improvements in the foreseable future. Co-authored-by: crueter <crueter@eden-emu.dev> Co-authored-by: PavelBARABANOV <pavelbarabanov94@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/324 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: MaranBr <maranbr@outlook.com> Co-committed-by: MaranBr <maranbr@outlook.com>
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r--src/common/settings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 63d46722ea..19140bce0d 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -158,6 +158,12 @@ bool IsFastmemEnabled() {
if (values.cpu_debug_mode) {
return static_cast<bool>(values.cpuopt_fastmem);
}
+ if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Unsafe) {
+ return static_cast<bool>(values.cpuopt_unsafe_host_mmu);
+ }
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun__)
+ return false;
+#endif
return true;
}