mirror of
https://github.com/wiidev/usbloadergx.git
synced 2025-02-07 23:43:24 +01:00
*Fixed GameSize not showing on install
*Fixed missplacing WiiMotePointer *Added some missing languagevariables
This commit is contained in:
parent
e1523224e8
commit
b758bef4e1
@ -1,3 +1,4 @@
|
|||||||
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -837,8 +838,8 @@ int MenuSettings()
|
|||||||
if (Settings.parentalcontrol > 3 )
|
if (Settings.parentalcontrol > 3 )
|
||||||
Settings.parentalcontrol = 0;
|
Settings.parentalcontrol = 0;
|
||||||
|
|
||||||
if( Settings.godmode == 1 ) options2.SetValue(0, "Unlocked");
|
if( Settings.godmode == 1 ) options2.SetValue(0, LANGUAGE.Unlocked);
|
||||||
else if( Settings.godmode == 0 ) options2.SetValue(0, "Locked");
|
else if( Settings.godmode == 0 ) options2.SetValue(0, LANGUAGE.Locked);
|
||||||
|
|
||||||
if ( Settings.godmode != 1) options2.SetValue(1, "********");
|
if ( Settings.godmode != 1) options2.SetValue(1, "********");
|
||||||
else if (!strcmp("", Settings.unlockCode)) options2.SetValue(1, "%s",LANGUAGE.notset);
|
else if (!strcmp("", Settings.unlockCode)) options2.SetValue(1, "%s",LANGUAGE.notset);
|
||||||
@ -1642,8 +1643,7 @@ int GameSettings(struct discHdr * header)
|
|||||||
|
|
||||||
while(!exit)
|
while(!exit)
|
||||||
{
|
{
|
||||||
|
VIDEO_WaitVSync();
|
||||||
VIDEO_WaitVSync ();
|
|
||||||
|
|
||||||
if (videoChoice == discdefault) options3.SetValue(0,"%s",LANGUAGE.DiscDefault);
|
if (videoChoice == discdefault) options3.SetValue(0,"%s",LANGUAGE.DiscDefault);
|
||||||
else if (videoChoice == systemdefault) options3.SetValue(0,"%s",LANGUAGE.SystemDefault);
|
else if (videoChoice == systemdefault) options3.SetValue(0,"%s",LANGUAGE.SystemDefault);
|
||||||
@ -1673,21 +1673,21 @@ int GameSettings(struct discHdr * header)
|
|||||||
if (iosChoice == i249) options3.SetValue(4,"249");
|
if (iosChoice == i249) options3.SetValue(4,"249");
|
||||||
else if (iosChoice == i222) options3.SetValue(4,"222");
|
else if (iosChoice == i222) options3.SetValue(4,"222");
|
||||||
|
|
||||||
if (parentalcontrolChoice == 0) options3.SetValue(5,"0 (Always)");
|
if (parentalcontrolChoice == 0) options3.SetValue(5, LANGUAGE.Always);
|
||||||
else if (parentalcontrolChoice == 1) options3.SetValue(5,"1");
|
else if (parentalcontrolChoice == 1) options3.SetValue(5,"1");
|
||||||
else if (parentalcontrolChoice == 2) options3.SetValue(5,"2");
|
else if (parentalcontrolChoice == 2) options3.SetValue(5,"2");
|
||||||
else if (parentalcontrolChoice == 3) options3.SetValue(5,"3 (Mature)");
|
else if (parentalcontrolChoice == 3) options3.SetValue(5, LANGUAGE.Mature);
|
||||||
|
|
||||||
if (fix002 == on) options3.SetValue(6,LANGUAGE.ON);
|
if (fix002 == on) options3.SetValue(6,LANGUAGE.ON);
|
||||||
else if (fix002 == off) options3.SetValue(6,LANGUAGE.OFF);
|
else if (fix002 == off) options3.SetValue(6,LANGUAGE.OFF);
|
||||||
|
|
||||||
|
options3.SetValue(7, NULL);
|
||||||
|
|
||||||
if(shutdown == 1)
|
if(shutdown == 1)
|
||||||
Sys_Shutdown();
|
Sys_Shutdown();
|
||||||
if(reset == 1)
|
if(reset == 1)
|
||||||
Sys_Reboot();
|
Sys_Reboot();
|
||||||
|
|
||||||
options3.SetValue(7, NULL);
|
|
||||||
|
|
||||||
ret = optionBrowser3.GetClickedOption();
|
ret = optionBrowser3.GetClickedOption();
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
|
@ -37,6 +37,7 @@ snprintf(LANGUAGE.t3Covers, sizeof(LANGUAGE.t3Covers), "3D Covers");
|
|||||||
snprintf(LANGUAGE.Areyousure, sizeof(LANGUAGE.Areyousure), "Are you sure?");
|
snprintf(LANGUAGE.Areyousure, sizeof(LANGUAGE.Areyousure), "Are you sure?");
|
||||||
snprintf(LANGUAGE.available, sizeof(LANGUAGE.available), "available");
|
snprintf(LANGUAGE.available, sizeof(LANGUAGE.available), "available");
|
||||||
snprintf(LANGUAGE.AutoPatch, sizeof(LANGUAGE.AutoPatch), "AutoPatch");
|
snprintf(LANGUAGE.AutoPatch, sizeof(LANGUAGE.AutoPatch), "AutoPatch");
|
||||||
|
snprintf(LANGUAGE.Always, sizeof(LANGUAGE.Always), "0 (Always)");
|
||||||
snprintf(LANGUAGE.Back, sizeof(LANGUAGE.Back), "Back");
|
snprintf(LANGUAGE.Back, sizeof(LANGUAGE.Back), "Back");
|
||||||
snprintf(LANGUAGE.Backgroundmusic, sizeof(LANGUAGE.Backgroundmusic), "Backgroundmusic");
|
snprintf(LANGUAGE.Backgroundmusic, sizeof(LANGUAGE.Backgroundmusic), "Backgroundmusic");
|
||||||
snprintf(LANGUAGE.Backgroundmusicpath, sizeof(LANGUAGE.Backgroundmusicpath), "Backgroundmusic Path changed.");
|
snprintf(LANGUAGE.Backgroundmusicpath, sizeof(LANGUAGE.Backgroundmusicpath), "Backgroundmusic Path changed.");
|
||||||
@ -137,10 +138,11 @@ snprintf(LANGUAGE.LoadingincIOS, sizeof(LANGUAGE.LoadingincIOS), "Loading in cIO
|
|||||||
snprintf(LANGUAGE.ListSort, sizeof(LANGUAGE.ListSort), "Sort Game List");
|
snprintf(LANGUAGE.ListSort, sizeof(LANGUAGE.ListSort), "Sort Game List");
|
||||||
snprintf(LANGUAGE.Loadingstandardlanguage, sizeof(LANGUAGE.Loadingstandardlanguage), "Loading standard language.");
|
snprintf(LANGUAGE.Loadingstandardlanguage, sizeof(LANGUAGE.Loadingstandardlanguage), "Loading standard language.");
|
||||||
snprintf(LANGUAGE.Loadingstandardmusic, sizeof(LANGUAGE.Loadingstandardmusic), "Loading standard music.");
|
snprintf(LANGUAGE.Loadingstandardmusic, sizeof(LANGUAGE.Loadingstandardmusic), "Loading standard music.");
|
||||||
snprintf(LANGUAGE.Lock, sizeof(LANGUAGE.Lock), "Lock");
|
snprintf(LANGUAGE.Locked, sizeof(LANGUAGE.Locked), "Locked");
|
||||||
snprintf(LANGUAGE.LockConsole, sizeof(LANGUAGE.LockConsole), "Lock Console");
|
snprintf(LANGUAGE.LockConsole, sizeof(LANGUAGE.LockConsole), "Lock Console");
|
||||||
snprintf(LANGUAGE.Patchcountrystrings, sizeof(LANGUAGE.Patchcountrystrings), "Patch Country Strings");
|
snprintf(LANGUAGE.Patchcountrystrings, sizeof(LANGUAGE.Patchcountrystrings), "Patch Country Strings");
|
||||||
snprintf(LANGUAGE.Missingfiles, sizeof(LANGUAGE.Missingfiles), "Missing files");
|
snprintf(LANGUAGE.Missingfiles, sizeof(LANGUAGE.Missingfiles), "Missing files");
|
||||||
|
snprintf(LANGUAGE.Mature, sizeof(LANGUAGE.Mature), "3 (Mature)");
|
||||||
snprintf(LANGUAGE.Networkiniterror, sizeof(LANGUAGE.Networkiniterror), "Network init error");
|
snprintf(LANGUAGE.Networkiniterror, sizeof(LANGUAGE.Networkiniterror), "Network init error");
|
||||||
snprintf(LANGUAGE.Neither, sizeof(LANGUAGE.Neither), "Neither");
|
snprintf(LANGUAGE.Neither, sizeof(LANGUAGE.Neither), "Neither");
|
||||||
snprintf(LANGUAGE.Next, sizeof(LANGUAGE.Next), "Next");
|
snprintf(LANGUAGE.Next, sizeof(LANGUAGE.Next), "Next");
|
||||||
@ -214,7 +216,7 @@ snprintf(LANGUAGE.Try, sizeof(LANGUAGE.Try), "Try");
|
|||||||
snprintf(LANGUAGE.Tooltips, sizeof(LANGUAGE.Tooltips), "Tooltips");
|
snprintf(LANGUAGE.Tooltips, sizeof(LANGUAGE.Tooltips), "Tooltips");
|
||||||
snprintf(LANGUAGE.Timeleft, sizeof(LANGUAGE.Timeleft), "Time left:");
|
snprintf(LANGUAGE.Timeleft, sizeof(LANGUAGE.Timeleft), "Time left:");
|
||||||
snprintf(LANGUAGE.updating, sizeof(LANGUAGE.updating), "Updating");
|
snprintf(LANGUAGE.updating, sizeof(LANGUAGE.updating), "Updating");
|
||||||
snprintf(LANGUAGE.Unlock, sizeof(LANGUAGE.Unlock), "Unlock");
|
snprintf(LANGUAGE.Unlocked, sizeof(LANGUAGE.Unlocked), "Unlocked");
|
||||||
snprintf(LANGUAGE.UnlockConsoletousethisOption, sizeof(LANGUAGE.UnlockConsoletousethisOption), "Unlock console to use this option.");
|
snprintf(LANGUAGE.UnlockConsoletousethisOption, sizeof(LANGUAGE.UnlockConsoletousethisOption), "Unlock console to use this option.");
|
||||||
snprintf(LANGUAGE.Unicodefix, sizeof(LANGUAGE.Unicodefix), "Unicode Fix");
|
snprintf(LANGUAGE.Unicodefix, sizeof(LANGUAGE.Unicodefix), "Unicode Fix");
|
||||||
snprintf(LANGUAGE.Uninstall, sizeof(LANGUAGE.Uninstall), "Uninstall");
|
snprintf(LANGUAGE.Uninstall, sizeof(LANGUAGE.Uninstall), "Uninstall");
|
||||||
@ -291,6 +293,10 @@ void language_set(char *name, char *val)
|
|||||||
strcopy(LANGUAGE.AutoPatch, val, sizeof(LANGUAGE.AutoPatch));
|
strcopy(LANGUAGE.AutoPatch, val, sizeof(LANGUAGE.AutoPatch));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (strcmp(name, "Always") == 0) {
|
||||||
|
strcopy(LANGUAGE.Always, val, sizeof(LANGUAGE.Always));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (strcmp(name, "Back") == 0) {
|
if (strcmp(name, "Back") == 0) {
|
||||||
strcopy(LANGUAGE.Back, val, sizeof(LANGUAGE.Back));
|
strcopy(LANGUAGE.Back, val, sizeof(LANGUAGE.Back));
|
||||||
return;
|
return;
|
||||||
@ -695,8 +701,8 @@ void language_set(char *name, char *val)
|
|||||||
strcopy(LANGUAGE.Loadingstandardmusic, val, sizeof(LANGUAGE.Loadingstandardmusic));
|
strcopy(LANGUAGE.Loadingstandardmusic, val, sizeof(LANGUAGE.Loadingstandardmusic));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(name, "Lock") == 0) {
|
if (strcmp(name, "Locked") == 0) {
|
||||||
strcopy(LANGUAGE.Lock, val, sizeof(LANGUAGE.Lock));
|
strcopy(LANGUAGE.Locked, val, sizeof(LANGUAGE.Locked));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(name, "LockConsole") == 0) {
|
if (strcmp(name, "LockConsole") == 0) {
|
||||||
@ -711,6 +717,10 @@ void language_set(char *name, char *val)
|
|||||||
strcopy(LANGUAGE.Missingfiles, val, sizeof(LANGUAGE.Missingfiles));
|
strcopy(LANGUAGE.Missingfiles, val, sizeof(LANGUAGE.Missingfiles));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (strcmp(name, "Mature") == 0) {
|
||||||
|
strcopy(LANGUAGE.Mature, val, sizeof(LANGUAGE.Mature));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (strcmp(name, "Networkiniterror") == 0) {
|
if (strcmp(name, "Networkiniterror") == 0) {
|
||||||
strcopy(LANGUAGE.Networkiniterror, val, sizeof(LANGUAGE.Networkiniterror));
|
strcopy(LANGUAGE.Networkiniterror, val, sizeof(LANGUAGE.Networkiniterror));
|
||||||
return;
|
return;
|
||||||
@ -979,8 +989,8 @@ void language_set(char *name, char *val)
|
|||||||
strcopy(LANGUAGE.Timeleft, val, sizeof(LANGUAGE.Timeleft));
|
strcopy(LANGUAGE.Timeleft, val, sizeof(LANGUAGE.Timeleft));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(name, "Unlock") == 0) {
|
if (strcmp(name, "Unlocked") == 0) {
|
||||||
strcopy(LANGUAGE.Unlock, val, sizeof(LANGUAGE.Unlock));
|
strcopy(LANGUAGE.Unlocked, val, sizeof(LANGUAGE.Unlocked));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(name, "UnlockConsoletousethisOption") == 0) {
|
if (strcmp(name, "UnlockConsoletousethisOption") == 0) {
|
||||||
|
@ -18,6 +18,7 @@ struct LANGUAGE
|
|||||||
char available[20];
|
char available[20];
|
||||||
char Areyousure[50];
|
char Areyousure[50];
|
||||||
char AutoPatch[30];
|
char AutoPatch[30];
|
||||||
|
char Always[50];
|
||||||
char Back[20];
|
char Back[20];
|
||||||
char Backgroundmusic[80];
|
char Backgroundmusic[80];
|
||||||
char Backgroundmusicpath[100];
|
char Backgroundmusicpath[100];
|
||||||
@ -120,10 +121,11 @@ struct LANGUAGE
|
|||||||
char LoadingincIOS[50];
|
char LoadingincIOS[50];
|
||||||
char Loadingstandardlanguage[80];
|
char Loadingstandardlanguage[80];
|
||||||
char Loadingstandardmusic[80];
|
char Loadingstandardmusic[80];
|
||||||
char Lock[30];
|
char Locked[30];
|
||||||
char LockConsole[50];
|
char LockConsole[50];
|
||||||
char Patchcountrystrings[80];
|
char Patchcountrystrings[80];
|
||||||
char Missingfiles[50];
|
char Missingfiles[50];
|
||||||
|
char Mature[50];
|
||||||
char Networkiniterror[50];
|
char Networkiniterror[50];
|
||||||
char Neither[40];
|
char Neither[40];
|
||||||
char Next[40];
|
char Next[40];
|
||||||
@ -196,7 +198,7 @@ struct LANGUAGE
|
|||||||
char Try[30];
|
char Try[30];
|
||||||
char Tooltips[50];
|
char Tooltips[50];
|
||||||
char Timeleft[50];
|
char Timeleft[50];
|
||||||
char Unlock[50];
|
char Unlocked[50];
|
||||||
char UnlockConsoletousethisOption[100];
|
char UnlockConsoletousethisOption[100];
|
||||||
char Unicodefix[50];
|
char Unicodefix[50];
|
||||||
char Uninstall[50];
|
char Uninstall[50];
|
||||||
|
@ -67,11 +67,6 @@ GuiButton::GuiButton(GuiImage* img, GuiImage* imgOver, int hor, int vert, int x,
|
|||||||
yoffset = y;
|
yoffset = y;
|
||||||
trigger[0] = trig;
|
trigger[0] = trig;
|
||||||
|
|
||||||
//SetAlignment(h_align, v_align);
|
|
||||||
//SetPosition(x,y);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for(int i=0; i < 3; i++)
|
for(int i=0; i < 3; i++)
|
||||||
{
|
{
|
||||||
label[i] = NULL;
|
label[i] = NULL;
|
||||||
@ -115,11 +110,6 @@ GuiButton::GuiButton(GuiImage* img, GuiImage* imgOver, int hor, int vert, int x,
|
|||||||
yoffset = y;
|
yoffset = y;
|
||||||
trigger[0] = trig;
|
trigger[0] = trig;
|
||||||
|
|
||||||
//SetAlignment(h_align, v_align);
|
|
||||||
//SetPosition(x,y);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for(int i=0; i < 3; i++)
|
for(int i=0; i < 3; i++)
|
||||||
{
|
{
|
||||||
label[i] = NULL;
|
label[i] = NULL;
|
||||||
@ -135,7 +125,7 @@ GuiButton::GuiButton(GuiImage* img, GuiImage* imgOver, int hor, int vert, int x,
|
|||||||
holdable = false;
|
holdable = false;
|
||||||
clickable = true;
|
clickable = true;
|
||||||
|
|
||||||
if (grow==1){
|
if (grow==1) {
|
||||||
effectsOver |= EFFECT_SCALE;
|
effectsOver |= EFFECT_SCALE;
|
||||||
effectAmountOver = 4;
|
effectAmountOver = 4;
|
||||||
effectTargetOver = 110;
|
effectTargetOver = 110;
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include "libwiigui/gui.h"
|
#include "libwiigui/gui.h"
|
||||||
#include "libwiigui/gui_gamegrid.h"
|
#include "libwiigui/gui_gamegrid.h"
|
||||||
#include "libwiigui/gui_gamecarousel.h"
|
#include "libwiigui/gui_gamecarousel.h"
|
||||||
#include "libwiigui/gui_customoptionbrowser.h"
|
|
||||||
#include "libwiigui/gui_gamebrowser.h"
|
#include "libwiigui/gui_gamebrowser.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "audio.h"
|
#include "audio.h"
|
||||||
@ -1328,7 +1327,20 @@ static int MenuDiscList()
|
|||||||
else if (choice == 2)
|
else if (choice == 2)
|
||||||
{
|
{
|
||||||
wiilight(0);
|
wiilight(0);
|
||||||
if (GameSettings(header) == 1) //if deleted
|
HaltGui();
|
||||||
|
if (Settings.gameDisplay==list) mainWindow->Remove(&gameBrowser);
|
||||||
|
else if (Settings.gameDisplay==grid) mainWindow->Remove(&gameGrid);
|
||||||
|
else if (Settings.gameDisplay==carousel) mainWindow->Remove(&gameCarousel);
|
||||||
|
mainWindow->Remove(&w);
|
||||||
|
ResumeGui();
|
||||||
|
int settret = GameSettings(header);
|
||||||
|
HaltGui();
|
||||||
|
if (Settings.gameDisplay==list) mainWindow->Append(&gameBrowser);
|
||||||
|
else if (Settings.gameDisplay==grid) mainWindow->Append(&gameGrid);
|
||||||
|
else if (Settings.gameDisplay==carousel) mainWindow->Append(&gameCarousel);
|
||||||
|
mainWindow->Append(&w);
|
||||||
|
ResumeGui();
|
||||||
|
if (settret == 1) //if deleted
|
||||||
{
|
{
|
||||||
menu = MENU_DISCLIST;
|
menu = MENU_DISCLIST;
|
||||||
break;
|
break;
|
||||||
@ -1457,7 +1469,7 @@ static int MenuInstall()
|
|||||||
f32 freespace, used;
|
f32 freespace, used;
|
||||||
|
|
||||||
WBFS_DiskSpace(&used, &freespace);
|
WBFS_DiskSpace(&used, &freespace);
|
||||||
float gamesize = WBFS_EstimeGameSize()/GB_SIZE;
|
gamesize = WBFS_EstimeGameSize()/GB_SIZE;
|
||||||
char gametxt[50];
|
char gametxt[50];
|
||||||
|
|
||||||
sprintf(gametxt, "%s : %.2fGB", name, gamesize);
|
sprintf(gametxt, "%s : %.2fGB", name, gamesize);
|
||||||
|
@ -49,13 +49,17 @@ u32 ButtonsHold(void) {
|
|||||||
int i;
|
int i;
|
||||||
u32 buttons = 0;
|
u32 buttons = 0;
|
||||||
|
|
||||||
|
#ifdef HW_RVL
|
||||||
WPAD_ScanPads();
|
WPAD_ScanPads();
|
||||||
|
#endif
|
||||||
PAD_ScanPads();
|
PAD_ScanPads();
|
||||||
|
|
||||||
for(i=3; i >= 0; i--)
|
for(i=3; i >= 0; i--)
|
||||||
{
|
{
|
||||||
buttons |= PAD_ButtonsHeld(i);
|
buttons |= PAD_ButtonsHeld(i);
|
||||||
|
#ifdef HW_RVL
|
||||||
buttons |= WPAD_ButtonsHeld(i);
|
buttons |= WPAD_ButtonsHeld(i);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return buttons;
|
return buttons;
|
||||||
}
|
}
|
||||||
@ -65,13 +69,17 @@ u32 ButtonsPressed(void) {
|
|||||||
int i;
|
int i;
|
||||||
u32 buttons = 0;
|
u32 buttons = 0;
|
||||||
|
|
||||||
|
#ifdef HW_RVL
|
||||||
WPAD_ScanPads();
|
WPAD_ScanPads();
|
||||||
|
#endif
|
||||||
PAD_ScanPads();
|
PAD_ScanPads();
|
||||||
|
|
||||||
for(i=3; i >= 0; i--)
|
for(i=3; i >= 0; i--)
|
||||||
{
|
{
|
||||||
buttons |= PAD_ButtonsDown(i);
|
buttons |= PAD_ButtonsDown(i);
|
||||||
|
#ifdef HW_RVL
|
||||||
buttons |= WPAD_ButtonsDown(i);
|
buttons |= WPAD_ButtonsDown(i);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return buttons;
|
return buttons;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user