mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
* Added support for wbfs/GameID6/ path
* Updated custom banner URL (Thanks Abz) * Set default Wii disc dump mode to "Remove update partition" * Set default Nintendont MaxPad to 4 * Remove "shutdown to standby" choice on WiiU vWii.
This commit is contained in:
parent
4611ae1998
commit
9af7ee1010
@ -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 r1244</version>
|
<version>3.0 r1246</version>
|
||||||
<release_date>20150404152023</release_date>
|
<release_date>20150510135131</release_date>
|
||||||
<!-- // remove this line to enable arguments
|
<!-- // remove this line to enable arguments
|
||||||
<arguments>
|
<arguments>
|
||||||
<arg>--ios=250</arg>
|
<arg>--ios=250</arg>
|
||||||
|
@ -482,9 +482,23 @@ void GameWindow::ChangeGame(int EffectDirection)
|
|||||||
{
|
{
|
||||||
float size = GCGames::Instance()->GetGameSize((const char *) header->id);
|
float size = GCGames::Instance()->GetGameSize((const char *) header->id);
|
||||||
sizeTxt->SetTextf("%.2fGB", size); //set size text;
|
sizeTxt->SetTextf("%.2fGB", size); //set size text;
|
||||||
// TODO: Add GC disc size check
|
// TODO: Add GC multi disc size check
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rescale the disc if the picture is bigger (HighRes Disc art from gametdb)
|
||||||
|
/*
|
||||||
|
if(diskImgData->GetWidth() > 160)
|
||||||
|
{
|
||||||
|
diskImg->SetScale(160.0f / diskImgData->GetWidth());
|
||||||
|
diskImg->SetPosition( -(diskImgData->GetWidth() - 160)/2 , -(diskImgData->GetHeight() - 160)/2 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
diskImg->SetScale(1.0f);
|
||||||
|
diskImg->SetPosition( 0, 0);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
diskImg->SetImage(diskImgData);
|
diskImg->SetImage(diskImgData);
|
||||||
nameTxt->SetText(GameTitles.GetTitle(header));
|
nameTxt->SetText(GameTitles.GetTitle(header));
|
||||||
playcntTxt->SetTextf("%s: %i", tr( "Play Count" ), GameStatistics.GetPlayCount(header));
|
playcntTxt->SetTextf("%s: %i", tr( "Play Count" ), GameStatistics.GetPlayCount(header));
|
||||||
|
@ -978,7 +978,11 @@ int WindowExitPrompt()
|
|||||||
Sys_LoadMenu();
|
Sys_LoadMenu();
|
||||||
else if (Settings.HomeMenu == HOME_MENU_FULL)
|
else if (Settings.HomeMenu == HOME_MENU_FULL)
|
||||||
{
|
{
|
||||||
ret = WindowPrompt(tr( "How to Shutdown?" ), 0, tr( "Full shutdown" ), tr( "Standby" ), tr("Cancel"));
|
if(isWiiU())
|
||||||
|
ret = WindowPrompt(tr( "How to Shutdown?" ), 0, tr( "Full shutdown" ), tr("Cancel"));
|
||||||
|
else
|
||||||
|
ret = WindowPrompt(tr( "How to Shutdown?" ), 0, tr( "Full shutdown" ), tr( "Standby" ), tr("Cancel"));
|
||||||
|
|
||||||
if (ret == 1)
|
if (ret == 1)
|
||||||
Sys_ShutdownToStandby();
|
Sys_ShutdownToStandby();
|
||||||
else if(ret == 2)
|
else if(ret == 2)
|
||||||
|
@ -78,7 +78,7 @@ void CSettings::SetDefault()
|
|||||||
strlcpy(NandEmuChanPath, NandEmuPath, sizeof(NandEmuChanPath));
|
strlcpy(NandEmuChanPath, NandEmuPath, sizeof(NandEmuChanPath));
|
||||||
strlcpy(GameCubePath, "usb1:/games/", sizeof(GameCubePath));
|
strlcpy(GameCubePath, "usb1:/games/", sizeof(GameCubePath));
|
||||||
strlcpy(GameCubeSDPath, "sd:/games/", sizeof(GameCubeSDPath));
|
strlcpy(GameCubeSDPath, "sd:/games/", sizeof(GameCubeSDPath));
|
||||||
strlcpy(CustomBannersURL, "http://copy.com/vRN3HgFVyk9u7YuB/Public/", sizeof(CustomBannersURL));
|
strlcpy(CustomBannersURL, "http://nintendont.gxarena.com/banners/", sizeof(CustomBannersURL));
|
||||||
theme[0] = 0;
|
theme[0] = 0;
|
||||||
language_path[0] = 0;
|
language_path[0] = 0;
|
||||||
ogg_path[0] = 0;
|
ogg_path[0] = 0;
|
||||||
@ -127,7 +127,7 @@ void CSettings::SetDefault()
|
|||||||
ParentalBlocks = BLOCK_ALL;
|
ParentalBlocks = BLOCK_ALL;
|
||||||
InstallToDir = INSTALL_TO_NAME_GAMEID;
|
InstallToDir = INSTALL_TO_NAME_GAMEID;
|
||||||
GameSplit = GAMESPLIT_4GB;
|
GameSplit = GAMESPLIT_4GB;
|
||||||
InstallPartitions = ONLY_GAME_PARTITION;
|
InstallPartitions = REMOVE_UPDATE_PARTITION;
|
||||||
HomeMenu = HOME_MENU_DEFAULT;
|
HomeMenu = HOME_MENU_DEFAULT;
|
||||||
MultiplePartitions = OFF;
|
MultiplePartitions = OFF;
|
||||||
BlockIOSReload = AUTO;
|
BlockIOSReload = AUTO;
|
||||||
@ -190,7 +190,7 @@ void CSettings::SetDefault()
|
|||||||
NINAutoboot = ON;
|
NINAutoboot = ON;
|
||||||
NINSettings = AUTO;
|
NINSettings = AUTO;
|
||||||
NINUSBHID = OFF;
|
NINUSBHID = OFF;
|
||||||
NINMaxPads = 1;
|
NINMaxPads = 4;
|
||||||
NINNativeSI = OFF;
|
NINNativeSI = OFF;
|
||||||
NINWiiUWide = widescreen;
|
NINWiiUWide = widescreen;
|
||||||
NINOSReport = OFF;
|
NINOSReport = OFF;
|
||||||
@ -1170,8 +1170,9 @@ bool CSettings::SetSetting(char *name, char *value)
|
|||||||
else if (strcmp(name, "CustomBannersURL") == 0)
|
else if (strcmp(name, "CustomBannersURL") == 0)
|
||||||
{
|
{
|
||||||
if( strcmp(value, "http://dl.dropbox.com/u/101209384/") == 0 ||
|
if( strcmp(value, "http://dl.dropbox.com/u/101209384/") == 0 ||
|
||||||
strcmp(value, "http://dl.dropboxusercontent.com/u/101209384/") == 0)
|
strcmp(value, "http://dl.dropboxusercontent.com/u/101209384/") == 0 ||
|
||||||
strlcpy(CustomBannersURL, "http://copy.com/vRN3HgFVyk9u7YuB/Public/", sizeof(CustomBannersURL)); // update banner URL
|
strcmp(value, "http://copy.com/vRN3HgFVyk9u7YuB/Public/") == 0)
|
||||||
|
strlcpy(CustomBannersURL, "http://nintendont.gxarena.com/banners/", sizeof(CustomBannersURL)); // update banner URL
|
||||||
else
|
else
|
||||||
strlcpy(CustomBannersURL, value, sizeof(CustomBannersURL));
|
strlcpy(CustomBannersURL, value, sizeof(CustomBannersURL));
|
||||||
return true;
|
return true;
|
||||||
|
@ -1205,9 +1205,16 @@ int GameBooter::BootNintendont(struct discHdr *gameHdr)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gprintf("kenobiwii source path = %s Not found.\n", kenobiwii_srcpath);
|
||||||
|
if(WindowPrompt(tr("Warning:"), fmt(tr("To use ocarina with %s you need the %s file."), LoaderName, kenobiwii_path), tr("Continue"), tr("Cancel")) == 0)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
gprintf("kenobiwii path = %s Not found.\n", kenobiwii_path);
|
||||||
if(WindowPrompt(tr("Warning:"), fmt(tr("To use ocarina with %s you need the %s file."), LoaderName, kenobiwii_path), tr("Continue"), tr("Cancel")) == 0)
|
if(WindowPrompt(tr("Warning:"), fmt(tr("To use ocarina with %s you need the %s file."), LoaderName, kenobiwii_path), tr("Continue"), tr("Cancel")) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -451,28 +451,42 @@ s32 Wbfs_Fat::GetHeadersCount()
|
|||||||
snprintf(fname, sizeof(fname), "%s", dirent->d_name);
|
snprintf(fname, sizeof(fname), "%s", dirent->d_name);
|
||||||
|
|
||||||
len = strlen(fname);
|
len = strlen(fname);
|
||||||
if (len < 8) continue; // "GAMEID_x"
|
if (len < 6) continue; // less than "GAMEID"
|
||||||
|
|
||||||
int lay_a = 0;
|
if(len == 6)
|
||||||
int lay_b = 0;
|
|
||||||
if (CheckLayoutB(fname, len, id, fname_title))
|
|
||||||
{
|
{
|
||||||
// usb:/wbfs/TITLE[GAMEID]/GAMEID.wbfs
|
// usb:/wbfs/GAMEID/GAMEID.wbfs
|
||||||
lay_b = 1;
|
if(!isGameID(fname))
|
||||||
}
|
continue;
|
||||||
else if (fname[6] == '_')
|
|
||||||
{
|
|
||||||
// usb:/wbfs/GAMEID_TITLE/GAMEID.wbfs
|
|
||||||
memcpy(id, fname, 6);
|
memcpy(id, fname, 6);
|
||||||
|
|
||||||
if(isGameID((char*) id))
|
|
||||||
{
|
|
||||||
lay_a = 1;
|
|
||||||
snprintf(fname_title, sizeof(fname_title), &fname[7]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else if(len >= 8 ) // GAMEID_Title or Title_[GameID]
|
||||||
|
{
|
||||||
|
int lay_a = 0;
|
||||||
|
int lay_b = 0;
|
||||||
|
if (CheckLayoutB(fname, len, id, fname_title))
|
||||||
|
{
|
||||||
|
// usb:/wbfs/TITLE[GAMEID]/GAMEID.wbfs
|
||||||
|
lay_b = 1;
|
||||||
|
}
|
||||||
|
else if (fname[6] == '_')
|
||||||
|
{
|
||||||
|
// usb:/wbfs/GAMEID_TITLE/GAMEID.wbfs
|
||||||
|
memcpy(id, fname, 6);
|
||||||
|
|
||||||
|
if(isGameID((char*) id))
|
||||||
|
{
|
||||||
|
lay_a = 1;
|
||||||
|
snprintf(fname_title, sizeof(fname_title), &fname[7]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!lay_a && !lay_b) continue;
|
||||||
|
}
|
||||||
|
else // Todo : Add usb:/wbfs/Title/GAMEID.wbfs
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!lay_a && !lay_b) continue;
|
|
||||||
|
|
||||||
// check ahead, make sure it succeeds
|
// check ahead, make sure it succeeds
|
||||||
snprintf(fpath, sizeof(fpath), "%s/%s/%.6s.wbfs", path, dirent->d_name, (char *) id);
|
snprintf(fpath, sizeof(fpath), "%s/%s/%.6s.wbfs", path, dirent->d_name, (char *) id);
|
||||||
@ -624,7 +638,7 @@ int Wbfs_Fat::FindFilename(u8 *id, char *fname, int len)
|
|||||||
|
|
||||||
if (dirent->d_name[0] == '.') continue;
|
if (dirent->d_name[0] == '.') continue;
|
||||||
int n = strlen(dirent->d_name);
|
int n = strlen(dirent->d_name);
|
||||||
if (n < 8) continue;
|
if (n < 6) continue;
|
||||||
|
|
||||||
const char *fileext = strrchr(dirent->d_name, '.');
|
const char *fileext = strrchr(dirent->d_name, '.');
|
||||||
if(fileext && (strcasecmp(fileext, ".wbfs") == 0 ||
|
if(fileext && (strcasecmp(fileext, ".wbfs") == 0 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user