mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-22 10:59:15 +01:00
Only show update warning if "/vol/storage_mlc01/sys/update" exists and is actually a directory
This commit is contained in:
parent
efe611712f
commit
af68c340cf
@ -49,8 +49,9 @@ int32_t main(int32_t argc, char **argv) {
|
|||||||
if (client > 0) {
|
if (client > 0) {
|
||||||
if (Mocha_UnlockFSClientEx(client) == MOCHA_RESULT_SUCCESS) {
|
if (Mocha_UnlockFSClientEx(client) == MOCHA_RESULT_SUCCESS) {
|
||||||
// test if the update folder exists
|
// test if the update folder exists
|
||||||
FSStat stat;
|
FSADirectoryHandle dirHandle;
|
||||||
if (FSAGetStat(client, "/vol/storage_mlc01/sys/update", &stat) >= 0) {
|
if (FSAOpenDir(client, "/vol/storage_mlc01/sys/update", &dirHandle) >= 0) {
|
||||||
|
FSACloseDir(client, dirHandle);
|
||||||
handleUpdateWarningScreen();
|
handleUpdateWarningScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user