From b145f0f95378b6f33b3a9fe8ccfb0cd10e07ae98 Mon Sep 17 00:00:00 2001 From: Xpl0itU Date: Thu, 23 Jun 2022 18:29:14 +0200 Subject: [PATCH] Improve error displaying --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index e945aba..f997d4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; }