* 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:
cyan06 2015-11-17 14:41:27 +00:00
parent c0301679e3
commit 0f9f737830
6 changed files with 53 additions and 21 deletions

View File

@ -2,8 +2,8 @@
<app version="1">
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>3.0 r1256</version>
<release_date>20150815150707</release_date>
<version>3.0 r1259</version>
<release_date>20151117142425</release_date>
<!-- // remove this line to enable arguments
<arguments>
<arg>--ios=250</arg>

View File

@ -1468,31 +1468,29 @@ void GameBrowseMenu::UpdateGameInfoText(const u8 * gameId)
switch (IDfull[3])
{
case 'A':
case 'B':
case 'U':
case 'X':
strcpy(gameregion, tr("Region Free"));
break;
case 'E':
case 'N':
strcpy(gameregion, "NTSC U");
break;
case 'J':
strcpy(gameregion, "NTSC J");
break;
case 'K':
case 'Q':
case 'T':
strcpy(gameregion, "NTSC K");
break;
case 'W':
strcpy(gameregion, "NTSC T");
break;
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 ");
break;
}
HaltGui();

View File

@ -239,13 +239,12 @@ struct block ImageDownloader::DownloadImage(const char * url, const char * gameI
char downloadURL[512];
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)
{
snprintf(downloadURL, sizeof(downloadURL), "%s%s.bnr", url, gameID);
gprintf("%s", 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;
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);
gprintf(" - Not found. trying ID3:\n%s", downloadURL);
file = downloadfile(downloadURL);
if(file.size > 14517 && IsValidBanner(file.data))
if(IsValidBanner(file.data))
return file;
gprintf(" - Not found.\n");
@ -337,6 +336,39 @@ struct block ImageDownloader::DownloadImage(const char * url, const char * gameI
file = downloadfile(downloadURL);
if(VALID_IMAGE(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");

View File

@ -112,7 +112,7 @@ void CSettings::SetDefault()
partition = 0;
discart = DISCARTS_ORIGINALS_CUSTOMS;
coversfull = COVERSFULL_HQ;
xflip = XFLIP_NO;
xflip = XFLIP_SYSMENU;
quickboot = OFF;
wiilight = WIILIGHT_ON;
autonetwork = OFF;

View File

@ -29,6 +29,7 @@
#include "settings/SettingsPrompts.h"
#include "settings/CSettings.h"
#include "settings/SettingsEnums.h"
#include "settings/GameTitles.h"
#include "prompts/PromptWindows.h"
#include "prompts/ProgressWindow.h"
#include "language/gettext.h"
@ -311,6 +312,7 @@ int CustomPathsSM::GetMenuInternal()
else if(result == 1)
{
Channels::Instance()->GetEmuChannelList();
GameTitles.LoadTitlesFromGameTDB(Settings.titlestxt_path, false);
}
}

View File

@ -40,7 +40,7 @@ fi
rev_new=`expr $rev_new + 1`
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"?>
<app version="1">
<name> USB Loader GX</name>