mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-22 02:49:16 +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 (Mocha_UnlockFSClientEx(client) == MOCHA_RESULT_SUCCESS) {
|
||||
// test if the update folder exists
|
||||
FSStat stat;
|
||||
if (FSAGetStat(client, "/vol/storage_mlc01/sys/update", &stat) >= 0) {
|
||||
FSADirectoryHandle dirHandle;
|
||||
if (FSAOpenDir(client, "/vol/storage_mlc01/sys/update", &dirHandle) >= 0) {
|
||||
FSACloseDir(client, dirHandle);
|
||||
handleUpdateWarningScreen();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user