diff options
| author | GPUCode <geoster3d@gmail.com> | 2023-11-18 16:10:39 +0200 |
|---|---|---|
| committer | t895 <clombardo169@gmail.com> | 2023-11-25 00:47:28 -0500 |
| commit | 3764cc4be287d5586b1a019febc49e75a7a5b0cb (patch) | |
| tree | fa94b90be48a5debe83b414119da5b8419dd463c /src/common/settings.cpp | |
| parent | 19619b1b14ce347b09118626efc57f8551f2a5bf (diff) | |
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 81a036ef07..90e7475d70 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -159,7 +159,13 @@ bool IsFastmemEnabled() { static bool is_nce_enabled = false; void SetNceEnabled(bool is_39bit) { - is_nce_enabled = values.cpu_backend.GetValue() == CpuBackend::Nce && is_39bit; + const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce; + is_nce_enabled = is_nce_selected && is_39bit; + if (is_nce_selected && !is_nce_enabled) { + LOG_WARNING( + Common, + "Program does not utilize 39-bit address space, unable to natively execute code"); + } } bool IsNceEnabled() { |
