aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-11-01 16:21:45 -0500
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-11-01 16:21:45 -0500
commita41d11108b6478ad862fc7fcac36ab51c83b8602 (patch)
tree2c16c13764e6ef2b48c7327055fde64d7af2cd37 /src/core/core.cpp
parent01effa81ab0e151f8cfd674bf4da952d24645943 (diff)
parentac22c4087d9a6380c1937337530a5d4e54808ad1 (diff)
Merge remote-tracking branch 'origin/nx2' into merge/nx2-experimental-1101
# Conflicts: # src/core/loader/deconstructed_rom_directory.cpp
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 64e1d8de06..41871df870 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -318,6 +318,8 @@ struct System::Impl {
const bool switch2_program =
virtual_filesystem != nullptr &&
IsSwitch2Program(GetGameFileFromPath(virtual_filesystem, filepath));
+ Settings::SetCurrentProgramIsSwitch2(switch2_program);
+ Settings::SetAstcRecompressionOverride(std::nullopt);
// Switch 2 titles size their heap from the total memory and need the 12 GiB layout. Set it
// as a per-game value, so RestoreGlobalState brings back the configured layout afterwards.
@@ -1059,6 +1061,8 @@ void System::ApplySettings() {
if (IsPoweredOn()) {
Renderer().RefreshBaseSettings();
+ // Frontends switch docked/handheld through the settings; let the running game know.
+ GetAppletManager().OperationModeChanged();
}
}