mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
- fix for issue #163. deleting wbfs ext wii games.
This commit is contained in:
parent
e63d49cadd
commit
04dbf6bfa9
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 4.1 MiB |
@ -146,9 +146,9 @@ s32 WBFS_Ext_RemoveGame(u8 *discid, char *gamepath)
|
|||||||
{
|
{
|
||||||
DIR *dir_iter;
|
DIR *dir_iter;
|
||||||
struct dirent *ent;
|
struct dirent *ent;
|
||||||
char file[MAX_FAT_PATH + 768];//not sure why 768 but whatever
|
char file[MAX_FAT_PATH];
|
||||||
char folder[MAX_FAT_PATH];
|
char folder[MAX_FAT_PATH];
|
||||||
STRCOPY(folder, gamepath);//STRCOPY ?
|
STRCOPY(folder, gamepath);// why function STRCOPY and not just strcpy?
|
||||||
char *p = strrchr(folder, '/');
|
char *p = strrchr(folder, '/');
|
||||||
if(p) *p = 0;
|
if(p) *p = 0;
|
||||||
|
|
||||||
@ -158,9 +158,8 @@ s32 WBFS_Ext_RemoveGame(u8 *discid, char *gamepath)
|
|||||||
{
|
{
|
||||||
if(strstr(ent->d_name, (char*)discid) != NULL)
|
if(strstr(ent->d_name, (char*)discid) != NULL)
|
||||||
{
|
{
|
||||||
snprintf(file, sizeof(file), "%s/%s", folder, ent->d_name);
|
strcpy(file, fmt("%s/%s", folder, ent->d_name));
|
||||||
remove(file);
|
remove(file);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir(dir_iter);
|
closedir(dir_iter);
|
||||||
|
Loading…
Reference in New Issue
Block a user