*Fixed tooltip

*Changed max chars for path to 50
*Changed the covers and discimages to search for 6 ID first
*Fixed issue 230 (giantpune)
This commit is contained in:
dimok321 2009-05-10 07:23:01 +00:00
parent 0adb541dbd
commit e311e8790c
3 changed files with 17 additions and 16 deletions

View File

@ -909,6 +909,7 @@ bool cfg_save_global()// save global settings
fprintf(f, "cios = %d\n ", Settings.cios); fprintf(f, "cios = %d\n ", Settings.cios);
fprintf(f, "xflip = %d\n ", Settings.xflip); fprintf(f, "xflip = %d\n ", Settings.xflip);
fprintf(f, "qboot = %d\n ", Settings.qboot); fprintf(f, "qboot = %d\n ", Settings.qboot);
fprintf(f, "wsprompt = %d\n", Settings.wsprompt);
fprintf(f, "parentalcontrol = %d\n ", CFG.parentalcontrol); fprintf(f, "parentalcontrol = %d\n ", CFG.parentalcontrol);
fprintf(f, "cover_path = %s\n ", CFG.covers_path); fprintf(f, "cover_path = %s\n ", CFG.covers_path);
if(CFG.widescreen) { if(CFG.widescreen) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -808,7 +808,7 @@ int GameWindowPrompt()
strncat(gameName, "...", 3); strncat(gameName, "...", 3);
} }
snprintf(imgPath,sizeof(imgPath),"%s%s.png", CFG.disc_path, ID); //changed to current id snprintf(imgPath,sizeof(imgPath),"%s%s.png", CFG.disc_path, IDFull); //changed to current id
if (diskCover) if (diskCover)
delete diskCover; delete diskCover;
@ -818,7 +818,7 @@ int GameWindowPrompt()
if (!diskCover->GetImage()) if (!diskCover->GetImage())
{ {
delete diskCover; delete diskCover;
snprintf(imgPath, sizeof(imgPath), "%s%s.png", CFG.disc_path, IDFull); //changed to current full id snprintf(imgPath, sizeof(imgPath), "%s%s.png", CFG.disc_path, ID); //changed to current full id
diskCover = new GuiImageData(imgPath, 0); diskCover = new GuiImageData(imgPath, 0);
if (!diskCover->GetImage()) if (!diskCover->GetImage())
{ {
@ -1706,7 +1706,7 @@ UpdateGUI (void *arg)
else else
{ {
mainWindow->Draw(); mainWindow->Draw();
//if (Settings.tooltips == TooltipsOn && THEME.showToolTip != 0) if (Settings.tooltips == TooltipsOn && THEME.showToolTip != 0)
mainWindow->DrawTooltip(); mainWindow->DrawTooltip();
#ifdef HW_RVL #ifdef HW_RVL
@ -2713,12 +2713,12 @@ static int MenuDiscList()
cover = NULL; cover = NULL;
} }
snprintf(imgPath, sizeof(imgPath), "%s%s.png", CFG.covers_path, ID); snprintf(imgPath, sizeof(imgPath), "%s%s.png", CFG.covers_path, IDfull);
cover = new GuiImageData(imgPath,0); //load short id cover = new GuiImageData(imgPath,0); //load short id
if (!cover->GetImage()) //if could not load the short id image if (!cover->GetImage()) //if could not load the short id image
{ {
delete cover; delete cover;
snprintf(imgPath, sizeof(imgPath), "%s%s.png", CFG.covers_path, IDfull); snprintf(imgPath, sizeof(imgPath), "%s%s.png", CFG.covers_path, ID);
cover = new GuiImageData(imgPath, 0); //load full id image cover = new GuiImageData(imgPath, 0); //load full id image
if (!cover->GetImage()) if (!cover->GetImage())
{ {
@ -3643,9 +3643,9 @@ static int MenuSettings()
mainWindow->Remove(&page2Btn); mainWindow->Remove(&page2Btn);
w.Remove(&backBtn); w.Remove(&backBtn);
w.Remove(&lockBtn); w.Remove(&lockBtn);
char entered[20] = ""; char entered[50] = "";
strncpy(entered, CFG.covers_path, sizeof(entered)); strncpy(entered, CFG.covers_path, sizeof(entered));
int result = OnScreenKeyboard(entered, 20); int result = OnScreenKeyboard(entered, 50);
mainWindow->Append(&optionBrowser2); mainWindow->Append(&optionBrowser2);
mainWindow->Append(&page1Btn); mainWindow->Append(&page1Btn);
mainWindow->Append(&page2Btn); mainWindow->Append(&page2Btn);
@ -3671,9 +3671,9 @@ static int MenuSettings()
mainWindow->Remove(&page2Btn); mainWindow->Remove(&page2Btn);
w.Remove(&backBtn); w.Remove(&backBtn);
w.Remove(&lockBtn); w.Remove(&lockBtn);
char entered[20] = ""; char entered[50] = "";
strncpy(entered, CFG.disc_path, sizeof(entered)); strncpy(entered, CFG.disc_path, sizeof(entered));
int result = OnScreenKeyboard(entered, 20); int result = OnScreenKeyboard(entered, 50);
mainWindow->Append(&optionBrowser2); mainWindow->Append(&optionBrowser2);
mainWindow->Append(&page1Btn); mainWindow->Append(&page1Btn);
mainWindow->Append(&page2Btn); mainWindow->Append(&page2Btn);
@ -3699,9 +3699,9 @@ static int MenuSettings()
mainWindow->Remove(&page2Btn); mainWindow->Remove(&page2Btn);
w.Remove(&backBtn); w.Remove(&backBtn);
w.Remove(&lockBtn); w.Remove(&lockBtn);
char entered[20] = ""; char entered[50] = "";
strncpy(entered, CFG.theme_path, sizeof(entered)); strncpy(entered, CFG.theme_path, sizeof(entered));
int result = OnScreenKeyboard(entered, 20); int result = OnScreenKeyboard(entered, 50);
mainWindow->Append(&optionBrowser2); mainWindow->Append(&optionBrowser2);
mainWindow->Append(&page1Btn); mainWindow->Append(&page1Btn);
mainWindow->Append(&page2Btn); mainWindow->Append(&page2Btn);
@ -3772,8 +3772,8 @@ static int MenuSettings()
mainWindow->Remove(&page2Btn); mainWindow->Remove(&page2Btn);
w.Remove(&backBtn); w.Remove(&backBtn);
w.Remove(&lockBtn); w.Remove(&lockBtn);
char entered[20] = ""; char entered[20] = "";
int result = OnScreenKeyboard(entered, 20); int result = OnScreenKeyboard(entered, 20);
mainWindow->Append(&page1Btn); mainWindow->Append(&page1Btn);
mainWindow->Append(&page2Btn); mainWindow->Append(&page2Btn);
mainWindow->Append(&optionBrowser2); mainWindow->Append(&optionBrowser2);