mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-25 19:36:52 +01:00
fatInit now sets the correct path when setAsDefaultDevice
This commit is contained in:
parent
7d0b004900
commit
f4cb675198
@ -33,6 +33,9 @@
|
|||||||
|
|
||||||
2006-08-14 - Chishm
|
2006-08-14 - Chishm
|
||||||
* Added extended devoptab_t functions
|
* Added extended devoptab_t functions
|
||||||
|
|
||||||
|
2007-01-10 - Chishm
|
||||||
|
* fatInit now sets the correct path when setAsDefaultDevice
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/iosupport.h>
|
#include <sys/iosupport.h>
|
||||||
@ -101,7 +104,7 @@ bool fatInit (u32 cacheSize, bool setAsDefaultDevice) {
|
|||||||
AddDevice (&dotab_fat);
|
AddDevice (&dotab_fat);
|
||||||
|
|
||||||
if (setAsDefaultDevice) {
|
if (setAsDefaultDevice) {
|
||||||
setDefaultDevice( FindDevice ("fat:") );
|
chdir ("fat:/");
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user