Commits

Michael Jimenez  committed 324088d

enlarged cdvdman buffer for ISO name to 64 bytes

  • Participants
  • Parent commits 3a95d38

Comments (0)

Files changed (4)

File include/supportbase.h

 #define __SUPPORT_BASE_H
 
 #define UL_GAME_NAME_MAX	32
-#define ISO_GAME_NAME_MAX	32 // TODO stay at 32 for the moment, will be 64
+#define ISO_GAME_NAME_MAX	64
 #define GAME_STARTUP_MAX	12
 
 typedef struct

File modules/iopcore/cdvdman/cdvdman.c

 static int g_gamesetting_disable_DVDDL=0;
 static int g_gamesetting_0_pss=0;
 
-#define ISO_MAX_PARTS	10
+#define ISO_MAX_PARTS	16
 static int g_part_start[ISO_MAX_PARTS] = {
 	0,	// is apa header LBA in HDD use, is Long filename in SMB+ISO
 	0,
 	0,
 	0,
 	0,
+	0,
+	0,
+	0,
+	0,
+	0,
+	0,
 	0
 }; 
 

File src/hddsupport.c

 		memcpy((void*)((u32)irx+i+40),&no_pss,4);
 	}
 
-	// game id
-	memcpy((void*)((u32)irx+i+84), &gid, 5);
-
 	// patch 48bit flag
 	u8 flag_48bit = hddIs48bit() & 0xff;
 	memcpy((void*)((u32)irx+i+34), &flag_48bit, 1);
 	// patch start_sector
 	memcpy((void*)((u32)irx+i+44), &game->start_sector, 4);
 
+	for (i=0;i<size_irx;i++){
+		if(!strcmp((const char*)((u32)irx+i),"B00BS")){
+			break;
+		}
+	}
+	// game id
+	memcpy((void*)((u32)irx+i), &gid, 5);
+
 	// patches cdvdfsv
 	void *cdvdfsv_irx;
 	int size_cdvdfsv_irx;

File src/supportbase.c

 		memcpy((void*)((u32)cdvdman_irx + i + 40), &no_pss, 4);
 	}
 
+	*patchindex = i;
+
+	for (i = 0; i < size_cdvdman; i++) {
+		if (!strcmp((const char*)((u32)cdvdman_irx + i),"B00BS")) {
+			break;
+		}
+	}
 	// game id
-	memcpy((void*)((u32)cdvdman_irx + i + 84), &gameid, 5);
-
-	*patchindex = i;
+	memcpy((void*)((u32)cdvdman_irx + i), &gameid, 5);
 
 	// patches cdvdfsv
 	void *cdvdfsv_irx;