Commits

hominem_te_esse committed c10390c

fix for broken UL on ETH mode

Comments (0)

Files changed (2)

 	compatmask = sbPrepare(game, configSet, size_irx, irx, &i);
 
 	// For ISO we use the part table to store the "long" name (only for init)
-	if (game->isISO)
+	if (game->isISO) {
+		memcpy((void*)((u32)irx + i), game->extension, 5);
+		strcpy((void*)((u32)irx + i + 5), game->startup);
 		memcpy((void*)((u32)irx + i + 44), game->name, strlen(game->name) + 1);
+	} else {
+		sprintf(filename, "ul.%08X.%s", USBA_crc32(game->name), game->startup);
+		memcpy((void*)((u32)irx + i), filename, strlen(filename) + 1);
+	}
 
 	for (i = 0; i < size_irx; i++) {
 		if (!strcmp((const char*)((u32)irx + i),"xxx.xxx.xxx.xxx")) {
 		}
 	}
 
-	memcpy((void*)((u32)cdvdman_irx + i), game->extension, 5);
-	strcpy((void*)((u32)cdvdman_irx + i + 5), game->startup);
 	memcpy((void*)((u32)cdvdman_irx + i + 33), &game->parts, 1);
 	memcpy((void*)((u32)cdvdman_irx + i + 34), &game->media, 1);
 	if (compatmask & COMPAT_MODE_2) {