mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 10:21:55 +01:00
change the dol list to use all 6 chars of the ID because some regions are different
This commit is contained in:
parent
0d9e24a78a
commit
4886c5cc11
@ -234,14 +234,10 @@ int DiscBrowse(struct discHdr * header)
|
|||||||
|
|
||||||
int autoSelectDol(const char *id)
|
int autoSelectDol(const char *id)
|
||||||
{
|
{
|
||||||
//these are the game IDs without the 4th character
|
|
||||||
// if it turns out that the offset is different for different regions
|
//this is the list missing the 4th digit. im treating it like garbage until i know that it works for all regions
|
||||||
// the 4th char can be added
|
// i started teh ID6 list because fifa 08 has different numbers for different regions
|
||||||
|
/*if (strcmp(id,"RSX69") == 0) return 337;
|
||||||
// if this returns -2 then they are prompted with the offset and a message to give it to us
|
|
||||||
// so it can be added to this list
|
|
||||||
if (strcmp(id,"RHD8P") == 0) return 149;
|
|
||||||
if (strcmp(id,"RSX69") == 0) return 337;
|
|
||||||
if (strcmp(id,"RED41") == 0) return 1957;
|
if (strcmp(id,"RED41") == 0) return 1957;
|
||||||
if (strcmp(id,"RM269") == 0) return 492;
|
if (strcmp(id,"RM269") == 0) return 492;
|
||||||
if (strcmp(id,"RM213") == 0) return 492;//uncomfirmed. this is what lustar's site has for the jap version
|
if (strcmp(id,"RM213") == 0) return 492;//uncomfirmed. this is what lustar's site has for the jap version
|
||||||
@ -251,13 +247,46 @@ int autoSelectDol(const char *id)
|
|||||||
if (strcmp(id,"RMLH4") == 0) return 54;
|
if (strcmp(id,"RMLH4") == 0) return 54;
|
||||||
if (strcmp(id,"R9O69") == 0) return 1973;
|
if (strcmp(id,"R9O69") == 0) return 1973;
|
||||||
if (strcmp(id,"RBO69") == 0) return 675;
|
if (strcmp(id,"RBO69") == 0) return 675;
|
||||||
if (strcmp(id,"RF869") == 0) return -2;
|
if (strcmp(id,"RF869") == 0) return 439;
|
||||||
if (strcmp(id,"R5T69") == 0) return 1493;
|
if (strcmp(id,"R5T69") == 0) return 1493;
|
||||||
if (strcmp(id,"RVU8P") == 0) return -2;
|
if (strcmp(id,"RVU8P") == 0) return 16405;
|
||||||
if (strcmp(id,"RZT01") == 0) return -2;
|
if (strcmp(id,"RZT01") == 0) return 952;*/
|
||||||
/* fifa 08 -rf8?69
|
//////////ID6/////////////////
|
||||||
Virtua Tennis -rvu?8p
|
if (strcmp(id,"RF8E69") == 0) return 439;
|
||||||
Wii Sports Resort -rzt?01
|
if (strcmp(id,"RF8P69") == 0) return 463;
|
||||||
|
if (strcmp(id,"RF8X69") == 0) return 464;
|
||||||
|
|
||||||
|
if (strcmp(id,"RZTP01") == 0) return 952;
|
||||||
|
|
||||||
|
if (strcmp(id,"RMZX69") == 0) return 492;
|
||||||
|
if (strcmp(id,"RMZP69") == 0) return 492;
|
||||||
|
|
||||||
|
//if (strcmp(id,"REDP41") == 0) return 1957;
|
||||||
|
|
||||||
|
if (strcmp(id,"RSXP69") == 0) return 337;
|
||||||
|
|
||||||
|
if (strcmp(id,"RNBX69") == 0) return 964;
|
||||||
|
|
||||||
|
if (strcmp(id,"RMLP7U") == 0) return 56;
|
||||||
|
|
||||||
|
if (strcmp(id,"RKMP5D") == 0) return 290;
|
||||||
|
|
||||||
|
if (strcmp(id,"RHDP8P") == 0) return 149;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Fifa08 RF8P69 463
|
||||||
|
Fifa08 RF8X69 464
|
||||||
|
Wii Sports Resort RZTP01 952
|
||||||
|
Medal of Honor Heroes RMZX69 492
|
||||||
|
Medal of Honor Heroes RMZP69 492
|
||||||
|
Redsteel REDP41 1957
|
||||||
|
SSX RSXP69 337
|
||||||
|
NBA08 RNBX69 964
|
||||||
|
Metal Slug Anthology RMLP7U 56
|
||||||
|
Mortal Kombat RKMP5D 290
|
||||||
|
House of Dead 2+3 RHDP8P 149
|
||||||
Metroid Prime 1 and/or 2? listed on the alt dol list but not on lustar's site
|
Metroid Prime 1 and/or 2? listed on the alt dol list but not on lustar's site
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#define _PROMPTWINDOWS_H_
|
#define _PROMPTWINDOWS_H_
|
||||||
|
|
||||||
#include "usbloader/partition.h"
|
#include "usbloader/partition.h"
|
||||||
//#define NOTFULLCHANNEL
|
#define NOTFULLCHANNEL
|
||||||
|
|
||||||
int WindowPrompt(const char *title, const char *msg = NULL, const char *btn1Label = NULL,
|
int WindowPrompt(const char *title, const char *msg = NULL, const char *btn1Label = NULL,
|
||||||
const char *btn2Label = NULL, const char *btn3Label = NULL,
|
const char *btn2Label = NULL, const char *btn3Label = NULL,
|
||||||
|
@ -40,11 +40,11 @@ int showGameInfo(char *ID)
|
|||||||
ResumeGui();
|
ResumeGui();
|
||||||
//load the xml shit
|
//load the xml shit
|
||||||
bool databaseopened = true;
|
bool databaseopened = true;
|
||||||
OpenXMLDatabase(Settings.titlestxt_path, Settings.db_language, Settings.db_JPtoEN, true, false, true); // open file, do not load titles, keep in memory
|
//OpenXMLDatabase(Settings.titlestxt_path, Settings.db_language, Settings.db_JPtoEN, true, false, true); // open file, do not load titles, keep in memory
|
||||||
if(databaseopened) {
|
if(databaseopened) {
|
||||||
|
|
||||||
LoadGameInfoFromXML(ID, Settings.db_language);
|
LoadGameInfoFromXML(ID, Settings.db_language);
|
||||||
CloseXMLDatabase();
|
//CloseXMLDatabase();
|
||||||
|
|
||||||
bool showmeminfo = false;
|
bool showmeminfo = false;
|
||||||
|
|
||||||
|
@ -1977,8 +1977,8 @@ int GameSettings(struct discHdr * header)
|
|||||||
case 9:
|
case 9:
|
||||||
if(alternatedol == 2) {
|
if(alternatedol == 2) {
|
||||||
char filename[10];
|
char filename[10];
|
||||||
snprintf(filename,sizeof(filename),"%c%c%c%c%c",header->id[0], header->id[1], header->id[2],
|
snprintf(filename,sizeof(filename),"%c%c%c%c%c%c",header->id[0], header->id[1], header->id[2],
|
||||||
header->id[4], header->id[5]); //id without 4th character
|
header->id[3],header->id[4], header->id[5]);
|
||||||
int dolchoice =0;
|
int dolchoice =0;
|
||||||
//check to see if we already know the offset of the correct dol
|
//check to see if we already know the offset of the correct dol
|
||||||
int autodol = autoSelectDol(filename);
|
int autodol = autoSelectDol(filename);
|
||||||
@ -2001,12 +2001,13 @@ int GameSettings(struct discHdr * header)
|
|||||||
int res = DiscBrowse(header);
|
int res = DiscBrowse(header);
|
||||||
if((res >= 0)&&(res !=696969))
|
if((res >= 0)&&(res !=696969))
|
||||||
alternatedoloffset = res;
|
alternatedoloffset = res;
|
||||||
|
char tmp[170];
|
||||||
|
snprintf(tmp,sizeof(tmp),"It seems that you have some information that will we helpfull to us. Please pass this information along to the DEV team. %s - %i" ,filename,alternatedoloffset);
|
||||||
|
WindowPrompt(0,tmp,tr("Ok"));
|
||||||
}
|
}
|
||||||
if (autodol==-2){
|
|
||||||
char tmp[170];
|
|
||||||
snprintf(tmp,sizeof(tmp),"It seems that you have some information that will we helpfull to us. Please pass this information along to the DEV team. %s - %i" ,filename,alternatedoloffset);
|
|
||||||
WindowPrompt(0,tmp,tr("Ok"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
|
Loading…
Reference in New Issue
Block a user