diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-18 01:59:22 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:55 +0200 |
commit | 127b3da0f13ea0850c10115d45488dfe32a0a3f4 (patch) | |
tree | 23d118473491a902f9f441da5c97fb4cd313cfcc /src/core/hle/kernel | |
parent | settings: Require time zone setting value for stirng (diff) | |
download | yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.gz yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.bz2 yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.lz yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.xz yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.tar.zst yuzu-127b3da0f13ea0850c10115d45488dfe32a0a3f4.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp b/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp index 49bdc671e..7320b87b9 100644 --- a/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp +++ b/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp @@ -35,13 +35,25 @@ namespace { using namespace Common::Literals; u32 GetMemorySizeForInit() { - return Settings::values.use_unsafe_extended_memory_layout ? Smc::MemorySize_8GB - : Smc::MemorySize_4GB; + switch (Settings::values.memory_layout_mode.GetValue()) { + case Settings::MemoryLayout::Memory_4Gb: + return Smc::MemorySize_4GB; + case Settings::MemoryLayout::Memory_6Gb: + return Smc::MemorySize_6GB; + case Settings::MemoryLayout::Memory_8Gb: + return Smc::MemorySize_8GB; + } } Smc::MemoryArrangement GetMemoryArrangeForInit() { - return Settings::values.use_unsafe_extended_memory_layout ? Smc::MemoryArrangement_8GB - : Smc::MemoryArrangement_4GB; + switch (Settings::values.memory_layout_mode.GetValue()) { + case Settings::MemoryLayout::Memory_4Gb: + return Smc::MemoryArrangement_4GB; + case Settings::MemoryLayout::Memory_6Gb: + return Smc::MemoryArrangement_6GB; + case Settings::MemoryLayout::Memory_8Gb: + return Smc::MemoryArrangement_8GB; + } } } // namespace |