implements PLN-0158

This commit is contained in:
2026-07-05 01:12:09 +01:00
parent dcd3479b1d
commit b30ff73e3d
7 changed files with 188 additions and 20 deletions
@@ -69,16 +69,18 @@ impl HubHomeStep {
return Some(FirmwareState::ResumeResidentGame);
}
ctx.os.log(
LogLevel::Warn,
LogSource::Hub,
0,
format!(
"Cannot launch Home game {} while resident game app_id {} is active",
cartridge.title, resident_app_id
),
);
return None;
if let Err(error) = ctx.os.lifecycle().terminate_resident_game() {
ctx.os.log(
LogLevel::Error,
LogSource::Hub,
0,
format!(
"Failed to terminate resident game app_id {} before launching {}: {:?}",
resident_app_id, cartridge.title, error
),
);
return None;
}
}
return Some(FirmwareState::LoadCartridge(LoadCartridgeStep::new(