Skip to content

Commit

Permalink
Wii U: Move teardown code to atexit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Aug 27, 2024
1 parent 349f604 commit 980e242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/platform/wiiu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ extern "C" int main(int argc, char* argv[]) {
args.push_back(working_dir);
}

// Setup teardown code
atexit(WiiU_Exit);

Player::Init(std::move(args));
Player::Run();

WiiU_Exit();

return EXIT_SUCCESS;
return Player::exit_code;
}
1 change: 0 additions & 1 deletion src/platform/wiiu/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
*/

bool WiiU_ProcessProcUI();
void WiiU_Exit();

0 comments on commit 980e242

Please sign in to comment.