diff options
| author | 2023-07-17 19:59:22 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:55 -0400 | |
| commit | 127b3da0f13ea0850c10115d45488dfe32a0a3f4 (patch) | |
| tree | 23d118473491a902f9f441da5c97fb4cd313cfcc /src/common/settings.h | |
| parent | settings: Require time zone setting value for stirng (diff) | |
| download | yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.gz yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.xz yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.zip | |
core,common: Give memory layout setting an enum
Allows for 6GB and 8GB layouts to be selected.
Diffstat (limited to 'src/common/settings.h')
| -rw-r--r-- | src/common/settings.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 928636c72..618c34334 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -153,8 +153,12 @@ struct Values { | |||
| 153 | 153 | ||
| 154 | // Core | 154 | // Core |
| 155 | SwitchableSetting<bool> use_multi_core{linkage, true, "use_multi_core", Category::Core}; | 155 | SwitchableSetting<bool> use_multi_core{linkage, true, "use_multi_core", Category::Core}; |
| 156 | SwitchableSetting<bool> use_unsafe_extended_memory_layout{ | 156 | SwitchableSetting<MemoryLayout, true> memory_layout_mode{linkage, |
| 157 | linkage, false, "use_unsafe_extended_memory_layout", Category::Core}; | 157 | MemoryLayout::Memory_4Gb, |
| 158 | MemoryLayout::Memory_4Gb, | ||
| 159 | MemoryLayout::Memory_8Gb, | ||
| 160 | "memory_layout_mode", | ||
| 161 | Category::Core}; | ||
| 158 | SwitchableSetting<bool> use_speed_limit{ | 162 | SwitchableSetting<bool> use_speed_limit{ |
| 159 | linkage, true, "use_speed_limit", Category::Core, Specialization::Paired, false, true}; | 163 | linkage, true, "use_speed_limit", Category::Core, Specialization::Paired, false, true}; |
| 160 | SwitchableSetting<u16, true> speed_limit{linkage, | 164 | SwitchableSetting<u16, true> speed_limit{linkage, |