mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
* Rename meta.xml to lower case.
* Updated game's region detection and use "Region Free" instead of PAL as default value. * Added RU/FI/SE cover download if EN is not found on gametdb. * Remove outdated fileden.com specific code in image downloader functions. * Set default scroll direction to "system menu" for natural behavior. * Force a game's title reload when selecting a different EmuNAND path.
This commit is contained in:
parent
c0301679e3
commit
0f9f737830
@ -2,8 +2,8 @@
|
|||||||
<app version="1">
|
<app version="1">
|
||||||
<name> USB Loader GX</name>
|
<name> USB Loader GX</name>
|
||||||
<coder>USB Loader GX Team</coder>
|
<coder>USB Loader GX Team</coder>
|
||||||
<version>3.0 r1256</version>
|
<version>3.0 r1259</version>
|
||||||
<release_date>20150815150707</release_date>
|
<release_date>20151117142425</release_date>
|
||||||
<!-- // remove this line to enable arguments
|
<!-- // remove this line to enable arguments
|
||||||
<arguments>
|
<arguments>
|
||||||
<arg>--ios=250</arg>
|
<arg>--ios=250</arg>
|
||||||
|
@ -1468,31 +1468,29 @@ void GameBrowseMenu::UpdateGameInfoText(const u8 * gameId)
|
|||||||
|
|
||||||
switch (IDfull[3])
|
switch (IDfull[3])
|
||||||
{
|
{
|
||||||
|
case 'A':
|
||||||
|
case 'B':
|
||||||
|
case 'U':
|
||||||
|
case 'X':
|
||||||
|
strcpy(gameregion, tr("Region Free"));
|
||||||
|
break;
|
||||||
case 'E':
|
case 'E':
|
||||||
|
case 'N':
|
||||||
strcpy(gameregion, "NTSC U");
|
strcpy(gameregion, "NTSC U");
|
||||||
break;
|
break;
|
||||||
case 'J':
|
case 'J':
|
||||||
strcpy(gameregion, "NTSC J");
|
strcpy(gameregion, "NTSC J");
|
||||||
break;
|
break;
|
||||||
|
case 'K':
|
||||||
|
case 'Q':
|
||||||
|
case 'T':
|
||||||
|
strcpy(gameregion, "NTSC K");
|
||||||
|
break;
|
||||||
case 'W':
|
case 'W':
|
||||||
strcpy(gameregion, "NTSC T");
|
strcpy(gameregion, "NTSC T");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case 'K':
|
|
||||||
strcpy(gameregion, "NTSC K");
|
|
||||||
break;
|
|
||||||
case 'P':
|
|
||||||
case 'D':
|
|
||||||
case 'F':
|
|
||||||
case 'I':
|
|
||||||
case 'S':
|
|
||||||
case 'H':
|
|
||||||
case 'U':
|
|
||||||
case 'X':
|
|
||||||
case 'Y':
|
|
||||||
case 'Z':
|
|
||||||
strcpy(gameregion, " PAL ");
|
strcpy(gameregion, " PAL ");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HaltGui();
|
HaltGui();
|
||||||
|
@ -239,13 +239,12 @@ struct block ImageDownloader::DownloadImage(const char * url, const char * gameI
|
|||||||
char downloadURL[512];
|
char downloadURL[512];
|
||||||
bool PAL = false;
|
bool PAL = false;
|
||||||
|
|
||||||
//Download Custom banners for GameCube games first because fileden.com is sending a 404 picture instead of real 404 code.
|
|
||||||
if(strcmp(fileExt, ".bnr") == 0)
|
if(strcmp(fileExt, ".bnr") == 0)
|
||||||
{
|
{
|
||||||
snprintf(downloadURL, sizeof(downloadURL), "%s%s.bnr", url, gameID);
|
snprintf(downloadURL, sizeof(downloadURL), "%s%s.bnr", url, gameID);
|
||||||
gprintf("%s", downloadURL);
|
gprintf("%s", downloadURL);
|
||||||
struct block file = downloadfile(downloadURL);
|
struct block file = downloadfile(downloadURL);
|
||||||
if(file.size > 14517 && IsValidBanner(file.data)) //14517 = 404.gif file size from fileden.com
|
if(IsValidBanner(file.data))
|
||||||
return file;
|
return file;
|
||||||
|
|
||||||
free(file.data);
|
free(file.data);
|
||||||
@ -253,7 +252,7 @@ struct block ImageDownloader::DownloadImage(const char * url, const char * gameI
|
|||||||
snprintf(downloadURL, sizeof(downloadURL), "%s%.3s.bnr", url, gameID);
|
snprintf(downloadURL, sizeof(downloadURL), "%s%.3s.bnr", url, gameID);
|
||||||
gprintf(" - Not found. trying ID3:\n%s", downloadURL);
|
gprintf(" - Not found. trying ID3:\n%s", downloadURL);
|
||||||
file = downloadfile(downloadURL);
|
file = downloadfile(downloadURL);
|
||||||
if(file.size > 14517 && IsValidBanner(file.data))
|
if(IsValidBanner(file.data))
|
||||||
return file;
|
return file;
|
||||||
|
|
||||||
gprintf(" - Not found.\n");
|
gprintf(" - Not found.\n");
|
||||||
@ -337,6 +336,39 @@ struct block ImageDownloader::DownloadImage(const char * url, const char * gameI
|
|||||||
file = downloadfile(downloadURL);
|
file = downloadfile(downloadURL);
|
||||||
if(VALID_IMAGE(file))
|
if(VALID_IMAGE(file))
|
||||||
return file;
|
return file;
|
||||||
|
|
||||||
|
if(gameID[3] == 'R') // no english cover found, try russian
|
||||||
|
{
|
||||||
|
lang = "RU";
|
||||||
|
free(file.data);
|
||||||
|
|
||||||
|
snprintf(downloadURL, sizeof(downloadURL), "%s%s/%s.png", url, lang, gameID);
|
||||||
|
gprintf(" - Not found.\n%s", downloadURL);
|
||||||
|
file = downloadfile(downloadURL);
|
||||||
|
if(VALID_IMAGE(file))
|
||||||
|
return file;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(gameID[3] == 'V') // no English cover found, try Finnish and Swedish
|
||||||
|
{
|
||||||
|
lang = "FI";
|
||||||
|
free(file.data);
|
||||||
|
|
||||||
|
snprintf(downloadURL, sizeof(downloadURL), "%s%s/%s.png", url, lang, gameID);
|
||||||
|
gprintf(" - Not found.\n%s", downloadURL);
|
||||||
|
file = downloadfile(downloadURL);
|
||||||
|
if(VALID_IMAGE(file))
|
||||||
|
return file;
|
||||||
|
|
||||||
|
lang = "SE";
|
||||||
|
free(file.data);
|
||||||
|
|
||||||
|
snprintf(downloadURL, sizeof(downloadURL), "%s%s/%s.png", url, lang, gameID);
|
||||||
|
gprintf(" - Not found.\n%s", downloadURL);
|
||||||
|
file = downloadfile(downloadURL);
|
||||||
|
if(VALID_IMAGE(file))
|
||||||
|
return file;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gprintf(" - Not found.\n");
|
gprintf(" - Not found.\n");
|
||||||
|
@ -112,7 +112,7 @@ void CSettings::SetDefault()
|
|||||||
partition = 0;
|
partition = 0;
|
||||||
discart = DISCARTS_ORIGINALS_CUSTOMS;
|
discart = DISCARTS_ORIGINALS_CUSTOMS;
|
||||||
coversfull = COVERSFULL_HQ;
|
coversfull = COVERSFULL_HQ;
|
||||||
xflip = XFLIP_NO;
|
xflip = XFLIP_SYSMENU;
|
||||||
quickboot = OFF;
|
quickboot = OFF;
|
||||||
wiilight = WIILIGHT_ON;
|
wiilight = WIILIGHT_ON;
|
||||||
autonetwork = OFF;
|
autonetwork = OFF;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "settings/SettingsPrompts.h"
|
#include "settings/SettingsPrompts.h"
|
||||||
#include "settings/CSettings.h"
|
#include "settings/CSettings.h"
|
||||||
#include "settings/SettingsEnums.h"
|
#include "settings/SettingsEnums.h"
|
||||||
|
#include "settings/GameTitles.h"
|
||||||
#include "prompts/PromptWindows.h"
|
#include "prompts/PromptWindows.h"
|
||||||
#include "prompts/ProgressWindow.h"
|
#include "prompts/ProgressWindow.h"
|
||||||
#include "language/gettext.h"
|
#include "language/gettext.h"
|
||||||
@ -311,6 +312,7 @@ int CustomPathsSM::GetMenuInternal()
|
|||||||
else if(result == 1)
|
else if(result == 1)
|
||||||
{
|
{
|
||||||
Channels::Instance()->GetEmuChannelList();
|
Channels::Instance()->GetEmuChannelList();
|
||||||
|
GameTitles.LoadTitlesFromGameTDB(Settings.titlestxt_path, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ fi
|
|||||||
rev_new=`expr $rev_new + 1`
|
rev_new=`expr $rev_new + 1`
|
||||||
rev_date=`date -u +%Y%m%d%H%M%S`
|
rev_date=`date -u +%Y%m%d%H%M%S`
|
||||||
|
|
||||||
cat <<EOF > ./HBC/META.XML
|
cat <<EOF > ./HBC/meta.xml
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<app version="1">
|
<app version="1">
|
||||||
<name> USB Loader GX</name>
|
<name> USB Loader GX</name>
|
||||||
|
Loading…
Reference in New Issue
Block a user