mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 19:01:56 +01:00
- small coding change to get rid of a stupid compile warning.
This commit is contained in:
parent
b71f76c72f
commit
f11fe23f16
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.4 MiB After Width: | Height: | Size: 4.4 MiB |
@ -210,23 +210,24 @@ void PartitionHandle::UnMount(int pos)
|
||||
strcat(DeviceSyn, ":");
|
||||
DeviceSyn[9] = '\0';
|
||||
|
||||
if(strncmp(GetFSName(pos), "WBFS", 4) == 0)
|
||||
const char *FSName = GetFSName(pos);
|
||||
if(strncmp(FSName, "WBFS", 4) == 0)
|
||||
{
|
||||
wbfs_t *wbfshandle = GetWbfsHandle(pos);
|
||||
if(wbfshandle) wbfs_close(wbfshandle);
|
||||
gprintf("WBFS Partition at %s unmounted.\n", DeviceSyn);
|
||||
}
|
||||
else if(strncmp(GetFSName(pos), "FAT", 3) == 0)
|
||||
else if(strncmp(FSName, "FAT", 3) == 0)
|
||||
{
|
||||
fatUnmount(DeviceSyn);
|
||||
gprintf("FAT Partition at %s unmounted.\n", DeviceSyn);
|
||||
}
|
||||
else if(strncmp(GetFSName(pos), "NTFS", 4) == 0)
|
||||
else if(strncmp(FSName, "NTFS", 4) == 0)
|
||||
{
|
||||
ntfsUnmount(DeviceSyn, true);
|
||||
gprintf("NTFS Partition at %s unmounted.\n", DeviceSyn);
|
||||
}
|
||||
else if(strncmp(GetFSName(pos), "LINUX", 5) == 0)
|
||||
else if(strncmp(FSName, "LINUX", 5) == 0)
|
||||
{
|
||||
ext2Unmount(DeviceSyn);
|
||||
gprintf("EXT Partition at %s unmounted.\n", DeviceSyn);
|
||||
|
Loading…
Reference in New Issue
Block a user