2 BootMii - a Free Software replacement for the Nintendo/BroadOn bootloader.
5 Copyright (C) 2009 Andre Heider "dhewg" <dhewg@wiibrew.org>
7 # This code is licensed to you under the terms of the GNU GPL, version 2;
8 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
20 stat = disk_initialize(0);
22 if (stat & STA_NODISK)
25 if (stat & STA_NOINIT)
28 return f_mount(0, &fatfs);
31 u32 fat_umount(void) {
37 u32 fat_clust2sect(u32 clust) {
38 return clust2sect(&fatfs, clust);