Skip to content

Commit

Permalink
Improve error displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpl0itU committed Jun 23, 2022
1 parent 144ff1a commit b145f0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,16 @@ auto main() -> int {
int res = IOSUHAX_Open(NULL);
if (res < 0) {
promptError("IOSUHAX_Open failed.");
flipBuffers();
WHBProcShutdown();
return 0;
}

int fsaFd = IOSUHAX_FSA_Open();
if (fsaFd < 0) {
promptError("IOSUHAX_FSA_Open failed.");
flipBuffers();
WHBProcShutdown();
return 0;
}

Expand Down

0 comments on commit b145f0f

Please sign in to comment.