diff options
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 3e829253f..4666bd0a0 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -41,6 +41,7 @@ SWITCHABLE(AspectRatio, true); | |||
| 41 | SWITCHABLE(AstcDecodeMode, true); | 41 | SWITCHABLE(AstcDecodeMode, true); |
| 42 | SWITCHABLE(AstcRecompression, true); | 42 | SWITCHABLE(AstcRecompression, true); |
| 43 | SWITCHABLE(AudioMode, true); | 43 | SWITCHABLE(AudioMode, true); |
| 44 | SWITCHABLE(CpuBackend, true); | ||
| 44 | SWITCHABLE(CpuAccuracy, true); | 45 | SWITCHABLE(CpuAccuracy, true); |
| 45 | SWITCHABLE(FullscreenMode, true); | 46 | SWITCHABLE(FullscreenMode, true); |
| 46 | SWITCHABLE(GpuAccuracy, true); | 47 | SWITCHABLE(GpuAccuracy, true); |
| @@ -155,6 +156,22 @@ bool IsFastmemEnabled() { | |||
| 155 | return true; | 156 | return true; |
| 156 | } | 157 | } |
| 157 | 158 | ||
| 159 | static bool is_nce_enabled = false; | ||
| 160 | |||
| 161 | void SetNceEnabled(bool is_39bit) { | ||
| 162 | const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce; | ||
| 163 | is_nce_enabled = IsFastmemEnabled() && 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 | } | ||
| 169 | } | ||
| 170 | |||
| 171 | bool IsNceEnabled() { | ||
| 172 | return is_nce_enabled; | ||
| 173 | } | ||
| 174 | |||
| 158 | bool IsDockedMode() { | 175 | bool IsDockedMode() { |
| 159 | return values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked; | 176 | return values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked; |
| 160 | } | 177 | } |