Skip to content

Commit

Permalink
Fix Ike/Robin for Codename STEAM
Browse files Browse the repository at this point in the history
  • Loading branch information
hax0kartik committed Jul 9, 2022
1 parent a2c24e0 commit 421eb3f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jsons/amiibos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3960,7 +3960,7 @@
"code-name-s-t-e-a-m": [
[
"Ike",
"0x021f000103170502"
"0x2101000000180002"
],
[
"Lucina",
Expand All @@ -3972,7 +3972,7 @@
],
[
"Robin",
"0x022e000101d30502"
"0x21030000002a0002"
]
],
"detective-pikachu": [
Expand Down
4 changes: 2 additions & 2 deletions wumiibohelper/romfs/amiibos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3960,7 +3960,7 @@
"code-name-s-t-e-a-m": [
[
"Ike",
"0x021f000103170502"
"0x2101000000180002"
],
[
"Lucina",
Expand All @@ -3972,7 +3972,7 @@
],
[
"Robin",
"0x022e000101d30502"
"0x21030000002a0002"
]
],
"detective-pikachu": [
Expand Down
3 changes: 3 additions & 0 deletions wumiibohelper/source/States/AmiiboSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ void AmiiboSelection::OnStateExit(App *app){
/* Signal the event once because thread is stuck waiting on it */
LightEvent_Signal(&m_event);
/* Wait for both threads to exit */
//while(!(worker.IsDone() && worker1.IsDone())){
// svcSleepThread(0.005e+9);
//}
worker1.Join();
worker.Join();
m_optiontexts.clear();
Expand Down
7 changes: 7 additions & 0 deletions wumiibohelper/source/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ void App::Intialize(){
acInit();
gdbHioDevInit();
gdbHioDevRedirectStdStreams(true, true, true);
//aptSetHomeAllowed(false);
uint32_t status = 0;
ACU_GetStatus(&status);
if(status == 3){
Expand All @@ -27,6 +28,12 @@ void App::Intialize(){
ChangeState(ui::Initial);
}

void App::Finalize(){
acExit();
amExit();
gfxExit();
}

void App::RunLoop(){
while(aptMainLoop()){
hidScanInput();
Expand Down
1 change: 1 addition & 0 deletions wumiibohelper/source/app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class App{
public:
void Intialize();
void RunLoop();
void Finalize();
void ChangeState(auto newstate);
auto& GetTitleManager(){ return m_titlemanager; };
auto& GetJsonManager(){ return m_jsonmanager; };
Expand Down
1 change: 1 addition & 0 deletions wumiibohelper/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ int main()
App app;
app.Intialize();
app.RunLoop();
app.Finalize();
return 0;
}

0 comments on commit 421eb3f

Please sign in to comment.