diff options
| author | 2023-11-18 16:10:39 +0200 | |
|---|---|---|
| committer | 2023-11-25 00:47:28 -0500 | |
| commit | 8fab363237083a8130a7b2a023cd9c5dd83f8f4f (patch) | |
| tree | fa94b90be48a5debe83b414119da5b8419dd463c /src/common/settings.cpp | |
| parent | arm: Implement native code execution backend (diff) | |
| download | yuzu-8fab363237083a8130a7b2a023cd9c5dd83f8f4f.tar.gz yuzu-8fab363237083a8130a7b2a023cd9c5dd83f8f4f.tar.xz yuzu-8fab363237083a8130a7b2a023cd9c5dd83f8f4f.zip | |
android: Add cpu bakend gui toggle
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 81a036ef0..90e7475d7 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -159,7 +159,13 @@ bool IsFastmemEnabled() { | |||
| 159 | static bool is_nce_enabled = false; | 159 | static bool is_nce_enabled = false; |
| 160 | 160 | ||
| 161 | void SetNceEnabled(bool is_39bit) { | 161 | void SetNceEnabled(bool is_39bit) { |
| 162 | is_nce_enabled = values.cpu_backend.GetValue() == CpuBackend::Nce && is_39bit; | 162 | const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce; |
| 163 | is_nce_enabled = is_nce_selected && is_39bit; | ||
| 164 | if (is_nce_selected && !is_nce_enabled) { | ||
| 165 | LOG_WARNING( | ||
| 166 | Common, | ||
| 167 | "Program does not utilize 39-bit address space, unable to natively execute code"); | ||
| 168 | } | ||
| 163 | } | 169 | } |
| 164 | 170 | ||
| 165 | bool IsNceEnabled() { | 171 | bool IsNceEnabled() { |