diff options
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 51717be06..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 | } |
| @@ -206,9 +223,9 @@ const char* TranslateCategory(Category category) { | |||
| 206 | case Category::UiAudio: | 223 | case Category::UiAudio: |
| 207 | return "UiAudio"; | 224 | return "UiAudio"; |
| 208 | case Category::UiLayout: | 225 | case Category::UiLayout: |
| 209 | return "UiLayout"; | 226 | return "UILayout"; |
| 210 | case Category::UiGameList: | 227 | case Category::UiGameList: |
| 211 | return "UiGameList"; | 228 | return "UIGameList"; |
| 212 | case Category::Screenshots: | 229 | case Category::Screenshots: |
| 213 | return "Screenshots"; | 230 | return "Screenshots"; |
| 214 | case Category::Shortcuts: | 231 | case Category::Shortcuts: |
| @@ -219,6 +236,8 @@ const char* TranslateCategory(Category category) { | |||
| 219 | return "Services"; | 236 | return "Services"; |
| 220 | case Category::Paths: | 237 | case Category::Paths: |
| 221 | return "Paths"; | 238 | return "Paths"; |
| 239 | case Category::Linux: | ||
| 240 | return "Linux"; | ||
| 222 | case Category::MaxEnum: | 241 | case Category::MaxEnum: |
| 223 | break; | 242 | break; |
| 224 | } | 243 | } |