implements PLN-0147
This commit is contained in:
@@ -74,26 +74,11 @@ impl ShellRunningStep {
|
||||
}
|
||||
};
|
||||
|
||||
let action = match process_kind {
|
||||
let outcome = match process_kind {
|
||||
ProcessKind::VmShell => {
|
||||
let outcome =
|
||||
ctx.hub.update_shell_profile(ctx.os, ctx.vm, ctx.signals, ctx.platform);
|
||||
|
||||
if let Some(report) = outcome.crash {
|
||||
let _ = ctx.os.lifecycle().crash_task(self.task_id, Some(&report));
|
||||
return Some(FirmwareState::AppCrashes(AppCrashesStep { report }));
|
||||
}
|
||||
|
||||
outcome.action
|
||||
}
|
||||
ProcessKind::NativeShell => {
|
||||
let mut action = ctx.hub.gui_update(ctx.os, ctx.platform);
|
||||
if ctx.platform.input().pad().start().down {
|
||||
action = Some(SystemProfileAction::CloseShell);
|
||||
}
|
||||
ctx.hub.render(ctx.os, ctx.platform);
|
||||
action
|
||||
ctx.hub.update_shell_profile(ctx.os, ctx.vm, ctx.signals, ctx.platform)
|
||||
}
|
||||
ProcessKind::NativeShell => ctx.hub.update_native_shell_profile(ctx.os, ctx.platform),
|
||||
ProcessKind::VmGame => {
|
||||
let report = CrashReport::VmPanic {
|
||||
message: format!(
|
||||
@@ -106,7 +91,12 @@ impl ShellRunningStep {
|
||||
}
|
||||
};
|
||||
|
||||
if action == Some(SystemProfileAction::CloseShell) {
|
||||
if let Some(report) = outcome.crash {
|
||||
let _ = ctx.os.lifecycle().crash_task(self.task_id, Some(&report));
|
||||
return Some(FirmwareState::AppCrashes(AppCrashesStep { report }));
|
||||
}
|
||||
|
||||
if outcome.action == Some(SystemProfileAction::CloseShell) {
|
||||
self.close_current_shell(ctx);
|
||||
return Some(FirmwareState::HubHome(HubHomeStep));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user