devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

wutdevoptab: Only call FSUnmount if FSMount was successful #209

Closed Maschell closed 2 years ago

Maschell commented 2 years ago

We need to make sure FSUnmount is only called with a valid target. Calling FSUnmount with an invalid target causes the FS to throw fatal error, softlocking the whole console:

00;02;09;520: FS: FSUnmount: target specifies invalid mount path.
00;02;09;520: FS: Updated volume state of client 0x80cfbd80 to FS_VOLSTATE_FATAL(10)
00;02;09;520: FS: by error -196641.
00;02;09;520: FS: Fatal error occured.