mirror of
https://github.com/wiiu-env/homebrew_on_menu_plugin.git
synced 2024-11-22 02:29:15 +01:00
Fix crash when inserting/removing the sd card in applets while the Wii U Menu is running
This commit is contained in:
parent
49e6b50af1
commit
237087adae
@ -14,6 +14,7 @@
|
||||
#include <coreinit/debug.h>
|
||||
#include <coreinit/filesystem.h>
|
||||
#include <coreinit/mcp.h>
|
||||
#include <coreinit/memory.h>
|
||||
#include <coreinit/mutex.h>
|
||||
#include <coreinit/systeminfo.h>
|
||||
#include <coreinit/title.h>
|
||||
@ -261,7 +262,7 @@ void SDCleanUpHandlesHandler() {
|
||||
}
|
||||
|
||||
void SDAttachedHandler([[maybe_unused]] SDUtilsAttachStatus status) {
|
||||
if (!sTitleRebooting) {
|
||||
if (OSGetForegroundBucket(nullptr, nullptr) && !sTitleRebooting) {
|
||||
_SYSLaunchTitleWithStdArgsInNoSplash(OSGetTitleID(), nullptr);
|
||||
sTitleRebooting = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user