Skip to content

Commit

Permalink
Update Hints.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell authored Feb 13, 2024
1 parent f96f82e commit 4485c17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Hints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <notifications/notifications.h>
#include <sdutils/sdutils.h>
#include <thread>
#include <errno.h>

std::unique_ptr<std::thread> sShowHintThread;
static bool sShutdownHintThread = false;
Expand All @@ -29,7 +30,7 @@ void ShowHints() {
const char *tmp_file = "fs:/vol/external01/wiiu/write_lock";
int fd = -1;
if ((fd = open(tmp_file, O_CREAT | O_TRUNC | O_RDWR)) < 0) {
DEBUG_FUNCTION_LINE_VERBOSE("SD Card mounted but not writable");
DEBUG_FUNCTION_LINE_VERBOSE("SD Card mounted but not writable. %d , %s", errno, strerror(errno));
NotificationModuleStatus err;
NMColor red = {237, 28, 36, 255};
NotificationModuleHandle outHandle;
Expand Down Expand Up @@ -77,4 +78,4 @@ void StopHintThread() {
sShowHintThread->join();
sShowHintThread.reset();
}
}
}

0 comments on commit 4485c17

Please sign in to comment.