diff options
Diffstat (limited to 'src/core/settings.h')
| -rw-r--r-- | src/core/settings.h | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index 850ca4072..3eb336f75 100644 --- a/src/core/settings.h +++ b/src/core/settings.h | |||
| @@ -346,31 +346,6 @@ struct TouchscreenInput { | |||
| 346 | u32 rotation_angle; | 346 | u32 rotation_angle; |
| 347 | }; | 347 | }; |
| 348 | 348 | ||
| 349 | enum class NANDTotalSize : u64 { | ||
| 350 | S29_1GB = 0x747C00000ULL, | ||
| 351 | }; | ||
| 352 | |||
| 353 | enum class NANDUserSize : u64 { | ||
| 354 | S26GB = 0x680000000ULL, | ||
| 355 | }; | ||
| 356 | |||
| 357 | enum class NANDSystemSize : u64 { | ||
| 358 | S2_5GB = 0xA0000000, | ||
| 359 | }; | ||
| 360 | |||
| 361 | enum class SDMCSize : u64 { | ||
| 362 | S1GB = 0x40000000, | ||
| 363 | S2GB = 0x80000000, | ||
| 364 | S4GB = 0x100000000ULL, | ||
| 365 | S8GB = 0x200000000ULL, | ||
| 366 | S16GB = 0x400000000ULL, | ||
| 367 | S32GB = 0x800000000ULL, | ||
| 368 | S64GB = 0x1000000000ULL, | ||
| 369 | S128GB = 0x2000000000ULL, | ||
| 370 | S256GB = 0x4000000000ULL, | ||
| 371 | S1TB = 0x10000000000ULL, | ||
| 372 | }; | ||
| 373 | |||
| 374 | enum class RendererBackend { | 349 | enum class RendererBackend { |
| 375 | OpenGL = 0, | 350 | OpenGL = 0, |
| 376 | Vulkan = 1, | 351 | Vulkan = 1, |
| @@ -382,6 +357,11 @@ enum class GPUAccuracy : u32 { | |||
| 382 | Extreme = 2, | 357 | Extreme = 2, |
| 383 | }; | 358 | }; |
| 384 | 359 | ||
| 360 | enum class CPUAccuracy { | ||
| 361 | Accurate = 0, | ||
| 362 | DebugMode = 1, | ||
| 363 | }; | ||
| 364 | |||
| 385 | extern bool configuring_global; | 365 | extern bool configuring_global; |
| 386 | 366 | ||
| 387 | template <typename Type> | 367 | template <typename Type> |
| @@ -427,6 +407,18 @@ struct Values { | |||
| 427 | // Core | 407 | // Core |
| 428 | Setting<bool> use_multi_core; | 408 | Setting<bool> use_multi_core; |
| 429 | 409 | ||
| 410 | // Cpu | ||
| 411 | CPUAccuracy cpu_accuracy; | ||
| 412 | |||
| 413 | bool cpuopt_page_tables; | ||
| 414 | bool cpuopt_block_linking; | ||
| 415 | bool cpuopt_return_stack_buffer; | ||
| 416 | bool cpuopt_fast_dispatcher; | ||
| 417 | bool cpuopt_context_elimination; | ||
| 418 | bool cpuopt_const_prop; | ||
| 419 | bool cpuopt_misc_ir; | ||
| 420 | bool cpuopt_reduce_misalign_checks; | ||
| 421 | |||
| 430 | // Renderer | 422 | // Renderer |
| 431 | Setting<RendererBackend> renderer_backend; | 423 | Setting<RendererBackend> renderer_backend; |
| 432 | bool renderer_debug; | 424 | bool renderer_debug; |
| @@ -491,10 +483,6 @@ struct Values { | |||
| 491 | bool gamecard_inserted; | 483 | bool gamecard_inserted; |
| 492 | bool gamecard_current_game; | 484 | bool gamecard_current_game; |
| 493 | std::string gamecard_path; | 485 | std::string gamecard_path; |
| 494 | NANDTotalSize nand_total_size; | ||
| 495 | NANDSystemSize nand_system_size; | ||
| 496 | NANDUserSize nand_user_size; | ||
| 497 | SDMCSize sdmc_size; | ||
| 498 | 486 | ||
| 499 | // Debugging | 487 | // Debugging |
| 500 | bool record_frame_times; | 488 | bool record_frame_times; |
| @@ -505,7 +493,6 @@ struct Values { | |||
| 505 | bool dump_nso; | 493 | bool dump_nso; |
| 506 | bool reporting_services; | 494 | bool reporting_services; |
| 507 | bool quest_flag; | 495 | bool quest_flag; |
| 508 | bool disable_cpu_opt; | ||
| 509 | bool disable_macro_jit; | 496 | bool disable_macro_jit; |
| 510 | 497 | ||
| 511 | // Misceallaneous | 498 | // Misceallaneous |