mirror of
https://github.com/Team-Neptune/DeepSea-Toolbox.git
synced 2024-11-23 04:19:42 +00:00
Fix incorrect cleanup when handling ams:bpc and sm sessions
This commit is contained in:
parent
e0fc1ff00b
commit
9606e66b15
@ -62,12 +62,10 @@ GuiHekate::GuiHekate() : Gui() {
|
||||
}
|
||||
|
||||
if (canReboot) {
|
||||
smExit(); //Required to connect to ams:bpc (is it?)
|
||||
smExit(); //Required to connect to ams:bpc
|
||||
if R_FAILED(rc = amsBpcInitialize()) {
|
||||
canReboot = false;
|
||||
errorMessage = "Failed to initialize ams:bpc!";
|
||||
}
|
||||
else {
|
||||
smInitialize();
|
||||
}
|
||||
}
|
||||
@ -163,6 +161,9 @@ GuiHekate::GuiHekate() : Gui() {
|
||||
|
||||
GuiHekate::~GuiHekate() {
|
||||
amsBpcExit();
|
||||
if(canReboot) {
|
||||
smInitialize();
|
||||
}
|
||||
setsysExit();
|
||||
spsmExit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user