*Fixed Alternate DOL not working (since 529)

This commit is contained in:
dimok321 2009-06-17 11:10:25 +00:00
parent db9df14d66
commit 1079b110a7
2 changed files with 24 additions and 28 deletions

View File

@ -341,12 +341,8 @@ s32 Apploader_Run(entry_point *entry, u8 cheat, u8 videoSelected, u8 vipatch, u8
if(alternatedol == 1) { if(alternatedol == 1) {
void *dolbuffer; void *dolbuffer;
int dollen; int dollen;
char * path = Settings.dolpath; bool dolloaded = Load_Dol(&dolbuffer, &dollen, Settings.dolpath);
//snprintf(path, sizeof(path), Settings.dolpath);
//char * path = "SD:/";
bool dolloaded = Load_Dol(&dolbuffer, &dollen, path);
if(dolloaded) { if(dolloaded) {
Remove_001_Protection(dolbuffer, dollen); Remove_001_Protection(dolbuffer, dollen);

View File

@ -12,33 +12,33 @@ extern "C"
struct gameXMLinfo struct gameXMLinfo
{ {
char id[8]; char id[10];
char version[50]; char version[500];
char region[10]; char region[10];
char title[100]; char title[500];
char synopsis[2000]; char synopsis[2000];
char title_EN[100]; char title_EN[500];
char synopsis_EN[2000]; char synopsis_EN[2000];
char locales[15][50]; char locales[100][500];
char developer[75]; char developer[500];
char publisher[75]; char publisher[500];
char publisherfromid[75]; char publisherfromid[500];
char year[10]; char year[10];
char month[10]; char month[10];
char day[10]; char day[10];
char genre[40]; char genre[500];
char genresplit[10][15]; char genresplit[100][500];
char ratingtype[6]; char ratingtype[10];
char ratingvalue[6]; char ratingvalue[10];
char ratingdescriptors[20][15]; char ratingdescriptors[100][500];
char ratingvalueCERO[6]; char ratingvalueCERO[10];
char ratingvalueESRB[6]; char ratingvalueESRB[10];
char ratingvaluePEGI[6]; char ratingvaluePEGI[10];
char wifiplayers[4]; char wifiplayers[10];
char wififeatures[10][15]; char wififeatures[100][500];
char players[4]; char players[10];
char accessories[10][15]; char accessories[100][500];
char accessories_required[10][15]; char accessories_required[100][500];
char iso_crc[10]; char iso_crc[10];
char iso_md5[50]; char iso_md5[50];
char iso_sha1[50]; char iso_sha1[50];
@ -46,7 +46,7 @@ struct gameXMLinfo
int accessoryCnt; int accessoryCnt;
int accessoryReqCnt; int accessoryReqCnt;
int wifiCnt; int wifiCnt;
} ; } ;
struct gameXMLinfo gameinfo; struct gameXMLinfo gameinfo;