mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 17:29:17 +01:00
Made 002fix automatic when anti-002 is turned on. Didn't test it at all. If it breaks games it can be reverted.
Made tooltip transparency in the theme file. use tooltipAlpha = ###. default is 255 (max).
This commit is contained in:
parent
cdc9f7afbd
commit
63a5de42ca
@ -148,7 +148,7 @@ GuiGameGrid::GuiGameGrid(int w, int h, struct discHdr * l, int count, const char
|
|||||||
titleTT = new GuiTooltip("test");
|
titleTT = new GuiTooltip("test");
|
||||||
titleTT->SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
titleTT->SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
titleTT->SetPosition(-100,0);
|
titleTT->SetPosition(-100,0);
|
||||||
titleTT->SetAlpha(175);
|
titleTT->SetAlpha(THEME.tooltipAlpha);
|
||||||
|
|
||||||
// if (Settings.wsprompt == yes)
|
// if (Settings.wsprompt == yes)
|
||||||
// installBtnTT.SetWidescreen(CFG.widescreen);
|
// installBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
@ -1356,7 +1356,7 @@ void GuiGameGrid::Update(GuiTrigger * t)
|
|||||||
if (selected!=selectedOld){
|
if (selected!=selectedOld){
|
||||||
delete titleTT;
|
delete titleTT;
|
||||||
titleTT = new GuiTooltip(titlebuffer);
|
titleTT = new GuiTooltip(titlebuffer);
|
||||||
titleTT->SetAlpha(175);
|
titleTT->SetAlpha(THEME.tooltipAlpha);
|
||||||
wait=0;wait1=0;
|
wait=0;wait1=0;
|
||||||
}
|
}
|
||||||
selectedOld=selected;
|
selectedOld=selected;
|
||||||
|
@ -321,6 +321,7 @@ static int MenuDiscList()
|
|||||||
GuiTooltip installBtnTT(LANGUAGE.Installagame);
|
GuiTooltip installBtnTT(LANGUAGE.Installagame);
|
||||||
if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
installBtnTT.SetWidescreen(CFG.widescreen);
|
installBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
|
installBtnTT.SetAlpha(THEME.tooltipAlpha);
|
||||||
GuiImage installBtnImg(&btnInstall);
|
GuiImage installBtnImg(&btnInstall);
|
||||||
GuiImage installBtnImgOver(&btnInstallOver);
|
GuiImage installBtnImgOver(&btnInstallOver);
|
||||||
installBtnImg.SetWidescreen(CFG.widescreen);
|
installBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
@ -332,7 +333,7 @@ static int MenuDiscList()
|
|||||||
GuiTooltip settingsBtnTT(LANGUAGE.settings);
|
GuiTooltip settingsBtnTT(LANGUAGE.settings);
|
||||||
if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
settingsBtnTT.SetWidescreen(CFG.widescreen);
|
settingsBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
|
settingsBtnTT.SetAlpha(THEME.tooltipAlpha);
|
||||||
GuiImage settingsBtnImg(&btnSettings);
|
GuiImage settingsBtnImg(&btnSettings);
|
||||||
settingsBtnImg.SetWidescreen(CFG.widescreen);
|
settingsBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
GuiImage settingsBtnImgOver(&btnSettingsOver);
|
GuiImage settingsBtnImgOver(&btnSettingsOver);
|
||||||
@ -353,7 +354,7 @@ static int MenuDiscList()
|
|||||||
GuiTooltip poweroffBtnTT(LANGUAGE.PowerofftheWii);
|
GuiTooltip poweroffBtnTT(LANGUAGE.PowerofftheWii);
|
||||||
if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
poweroffBtnTT.SetWidescreen(CFG.widescreen);
|
poweroffBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
|
poweroffBtnTT.SetAlpha(THEME.tooltipAlpha);
|
||||||
GuiImage poweroffBtnImg(&btnpwroff);
|
GuiImage poweroffBtnImg(&btnpwroff);
|
||||||
GuiImage poweroffBtnImgOver(&btnpwroffOver);
|
GuiImage poweroffBtnImgOver(&btnpwroffOver);
|
||||||
poweroffBtnImg.SetWidescreen(CFG.widescreen);
|
poweroffBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
@ -364,7 +365,7 @@ static int MenuDiscList()
|
|||||||
GuiTooltip sdcardBtnTT(LANGUAGE.ReloadSD);
|
GuiTooltip sdcardBtnTT(LANGUAGE.ReloadSD);
|
||||||
if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
sdcardBtnTT.SetWidescreen(CFG.widescreen);
|
sdcardBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
|
sdcardBtnTT.SetAlpha(THEME.tooltipAlpha);
|
||||||
GuiImage sdcardImg(&btnsdcard);
|
GuiImage sdcardImg(&btnsdcard);
|
||||||
sdcardImg.SetWidescreen(CFG.widescreen);
|
sdcardImg.SetWidescreen(CFG.widescreen);
|
||||||
GuiButton sdcardBtn(&sdcardImg,&sdcardImg, 0, 3, THEME.sdcard_x, THEME.sdcard_y, &trigA, &btnSoundOver, &btnClick,1,&sdcardBtnTT,15,-30,0,5);
|
GuiButton sdcardBtn(&sdcardImg,&sdcardImg, 0, 3, THEME.sdcard_x, THEME.sdcard_y, &trigA, &btnSoundOver, &btnClick,1,&sdcardBtnTT,15,-30,0,5);
|
||||||
@ -504,7 +505,7 @@ static int MenuDiscList()
|
|||||||
GuiTooltip DownloadBtnTT(LANGUAGE.ClicktoDownloadCovers);
|
GuiTooltip DownloadBtnTT(LANGUAGE.ClicktoDownloadCovers);
|
||||||
if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
DownloadBtnTT.SetWidescreen(CFG.widescreen);
|
DownloadBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
|
DownloadBtnTT.SetAlpha(THEME.tooltipAlpha);
|
||||||
GuiButton DownloadBtn(160,224);
|
GuiButton DownloadBtn(160,224);
|
||||||
DownloadBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
DownloadBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
DownloadBtn.SetPosition(THEME.cover_x,THEME.cover_y);
|
DownloadBtn.SetPosition(THEME.cover_x,THEME.cover_y);
|
||||||
|
@ -245,6 +245,7 @@ void CFG_Default(int widescreen) // -1 = non forced Mode
|
|||||||
THEME.region_x = 68;
|
THEME.region_x = 68;
|
||||||
THEME.region_y = 30;
|
THEME.region_y = 30;
|
||||||
THEME.power_x = 576;
|
THEME.power_x = 576;
|
||||||
|
THEME.tooltipAlpha = 255;
|
||||||
THEME.power_y = 355;
|
THEME.power_y = 355;
|
||||||
THEME.home_x = 485;//215;
|
THEME.home_x = 485;//215;
|
||||||
THEME.home_y = 367;
|
THEME.home_y = 367;
|
||||||
@ -768,6 +769,12 @@ void theme_set(char *name, char *val)
|
|||||||
THEME.batteryUnused = x;
|
THEME.batteryUnused = x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (strcmp(cfg_name, "tooltipAlpha") == 0) {
|
||||||
|
short x;
|
||||||
|
if (sscanf(val, "%hd", &x) == 1) {
|
||||||
|
THEME.tooltipAlpha = x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
else if (strcmp(cfg_name, "maxcharacters") == 0) {
|
else if (strcmp(cfg_name, "maxcharacters") == 0) {
|
||||||
|
@ -62,6 +62,7 @@ struct THEME
|
|||||||
int gamegrid_y;
|
int gamegrid_y;
|
||||||
int gamegrid_w;
|
int gamegrid_w;
|
||||||
int gamegrid_h;
|
int gamegrid_h;
|
||||||
|
int tooltipAlpha;
|
||||||
int gamecarousel_x;
|
int gamecarousel_x;
|
||||||
int gamecarousel_y;
|
int gamecarousel_y;
|
||||||
int gamecarousel_w;
|
int gamecarousel_w;
|
||||||
|
@ -324,7 +324,7 @@ s32 Apploader_Run(entry_point *entry, u8 cheat, u8 videoSelected, u8 vipatch, u8
|
|||||||
/* Initialize apploader */
|
/* Initialize apploader */
|
||||||
appldr_init(__noprint);
|
appldr_init(__noprint);
|
||||||
|
|
||||||
if(error002fix) {
|
if((error002fix) || (Settings.anti002fix == on)){
|
||||||
/* ERROR 002 fix (thanks to WiiPower for sharing this)*/
|
/* ERROR 002 fix (thanks to WiiPower for sharing this)*/
|
||||||
*(u32 *)0x80003140 = *(u32 *)0x80003188;
|
*(u32 *)0x80003140 = *(u32 *)0x80003188;
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,10 @@ bool OpenXMLDatabase(char* xmlfilepath, char* argdblang, bool argJPtoEN, bool op
|
|||||||
if (xmlfilepath[strlen(xmlfilepath) - 1] != '/') snprintf(pathname, sizeof(pathname), "%s/",pathname);
|
if (xmlfilepath[strlen(xmlfilepath) - 1] != '/') snprintf(pathname, sizeof(pathname), "%s/",pathname);
|
||||||
snprintf(pathname, sizeof(pathname), "%s%s", pathname, xmlcfg_filename);
|
snprintf(pathname, sizeof(pathname), "%s%s", pathname, xmlcfg_filename);
|
||||||
if (openfile) opensuccess = OpenXMLFile(pathname);
|
if (openfile) opensuccess = OpenXMLFile(pathname);
|
||||||
|
if (!opensuccess) {
|
||||||
|
snprintf(pathname, sizeof(pathname), "%swiitdb.zip", pathname);
|
||||||
|
if (openfile) opensuccess = OpenXMLFile(pathname);
|
||||||
|
}
|
||||||
if (!opensuccess) {
|
if (!opensuccess) {
|
||||||
CloseXMLDatabase();
|
CloseXMLDatabase();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user