mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
add filter to hide channels that are installed on the SD card for 4.0 and 4.1. for this to work, the SD card with the channel installed on it must be in the Wii.
This commit is contained in:
parent
d5fb3ff33f
commit
267edd1bd4
File diff suppressed because one or more lines are too long
@ -109,9 +109,13 @@ int TitleBrowser(u32 type) {
|
|||||||
//get name from database cause i dont like the ADT function
|
//get name from database cause i dont like the ADT function
|
||||||
char line[200];
|
char line[200];
|
||||||
char tmp[50];
|
char tmp[50];
|
||||||
snprintf(tmp,50,tmp," ");
|
snprintf(tmp,50," ");
|
||||||
//snprintf(name[i],sizeof(name[i]),"Unknown Title");
|
|
||||||
|
|
||||||
|
//check if the content.bin is on the SD card for that game
|
||||||
|
//if there is content.bin,then the game is on the SDmenu and not the wii
|
||||||
|
sprintf(line,"SD:/private/wii/title/%s/content.bin",text);
|
||||||
|
if (!checkfile(line))
|
||||||
|
{
|
||||||
if (f) {
|
if (f) {
|
||||||
while (fgets(line, sizeof(line), f)) {
|
while (fgets(line, sizeof(line), f)) {
|
||||||
if (line[0]== text[0]&&
|
if (line[0]== text[0]&&
|
||||||
@ -145,6 +149,7 @@ int TitleBrowser(u32 type) {
|
|||||||
options3.SetValue(i, "%s",name[i]);
|
options3.SetValue(i, "%s",name[i]);
|
||||||
//options3.SetValue(i, " (%08x) %s",titles[i],name[i]);//use this line to show the number to call to launch the channel
|
//options3.SetValue(i, " (%08x) %s",titles[i],name[i]);//use this line to show the number to call to launch the channel
|
||||||
//move on to the next title
|
//move on to the next title
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,7 +167,7 @@ int TitleBrowser(u32 type) {
|
|||||||
//get name from database cause i dont like the ADT function
|
//get name from database cause i dont like the ADT function
|
||||||
char line[200];
|
char line[200];
|
||||||
char tmp[50];
|
char tmp[50];
|
||||||
snprintf(tmp,50,tmp," ");
|
snprintf(tmp,50," ");
|
||||||
//snprintf(name[i],sizeof(name[i]),"Unknown Title");
|
//snprintf(name[i],sizeof(name[i]),"Unknown Title");
|
||||||
if (f) {
|
if (f) {
|
||||||
while (fgets(line, sizeof(line), f)) {
|
while (fgets(line, sizeof(line), f)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user