fatInit now sets the correct path when setAsDefaultDevice

This commit is contained in:
Michael Chisholm 2007-01-10 10:48:46 +00:00
parent 7d0b004900
commit f4cb675198

View File

@ -33,6 +33,9 @@
2006-08-14 - Chishm
* Added extended devoptab_t functions
2007-01-10 - Chishm
* fatInit now sets the correct path when setAsDefaultDevice
*/
#include <sys/iosupport.h>
@ -101,7 +104,7 @@ bool fatInit (u32 cacheSize, bool setAsDefaultDevice) {
AddDevice (&dotab_fat);
if (setAsDefaultDevice) {
setDefaultDevice( FindDevice ("fat:") );
chdir ("fat:/");
}
return true;