hominem_te_esse avatar hominem_te_esse committed 6ab1ec5

remove useless code for compatibility mode 7 which is unused now.

Comments (0)

Files changed (9)

include/dialogs.h

 
 #include "include/dia.h"
 
-#define COMPAT_MODE_COUNT		8
+#define COMPAT_MODE_BASE		200
 
-#define COMPAT_MODE_BASE		200
+#define COMPAT_DMA				 99
 #define COMPAT_ALTSTARTUP		100
 #define COMPAT_GAME				101
 #define COMPAT_GAMEID			102

include/iosupport.h

 #define COMPAT				0x01 // default compatibility flags
 #define COMPAT_FULL			0x02 // default + DMA compat flags
 
-#define COMPAT_MODE_1 		0x01
-#define COMPAT_MODE_2 		0x02
-#define COMPAT_MODE_3 		0x04
-#define COMPAT_MODE_4 		0x08
-#define COMPAT_MODE_5 		0x10
-#define COMPAT_MODE_6 		0x20
-#define COMPAT_MODE_7 		0x40
-#define COMPAT_MODE_8 		0x80
+#define COMPAT_MODE_1 		 0x01 // Load alternate core
+#define COMPAT_MODE_2 		 0x02 // Alternative data read method
+#define COMPAT_MODE_3 		 0x04 // Unhook Syscalls
+#define COMPAT_MODE_4 		 0x08 // 0 PSS mode
+#define COMPAT_MODE_5 		 0x10 // Disable DVD-DL
+#define COMPAT_MODE_6 		 0x20 // Disable IGR
+#define COMPAT_MODE_7 		 0x40 // Reduced cdvdfsv buffer (UNUSED)
+#define COMPAT_MODE_8 		 0x80 // Hide dev9 module
+#define COMPAT_MODE_9		0x100 // Alternate IGR combo (UNUSED)
+
+#define COMPAT_MODE_COUNT		8
 
 // minimal inactive frames for cover display, can be pretty low since it means no button is pressed :)
 #define MENU_MIN_INACTIVE_FRAMES 8

lng/lang_English.lng

 0 PSS mode
 Disable DVD-DL
 Disable IGR
-Reduced cdvdfsv buffer
+Unused
 Hide dev9 module
 Alternate IGR combo
 Changing the size will reformat the VMC

lng/lang_French.lng

 mode 0 PSS
 Désactiver DVD-DL
 Désactiver IGR
-Tampon cdvdfsv réduit
+Inutilisé
 Cacher le module dev9
 Utiliser le combo IGR alternatif
 Changer la taille de la VMC la reformatera
 	
 	{UI_BREAK},
 	
-	{UI_LABEL, 0, 1, -1, 0, 0, {.label = {"DMA Mode", -1}}}, {UI_SPACER}, {UI_ENUM, COMPAT_MODE_BASE + COMPAT_MODE_COUNT, 1, -1, 0, 0, {.intvalue = {0, 0}}},
+	{UI_LABEL, 0, 1, -1, 0, 0, {.label = {"DMA Mode", -1}}}, {UI_SPACER}, {UI_ENUM, COMPAT_DMA, 1, -1, 0, 0, {.intvalue = {0, 0}}},
 	
 	{UI_SPLITTER},
 	
 	if (support->haveCompatibilityMode == COMPAT_FULL) {
 		configGetInt(configSet, CONFIG_ITEM_DMA, &dmaMode);
 		const char* dmaModes[] = { "MDMA 0", "MDMA 1", "MDMA 2", "UDMA 0",	"UDMA 1", "UDMA 2", "UDMA 3", "UDMA 4", "UDMA 5", "UDMA 6",	NULL };
-		diaSetEnum(diaCompatConfig, COMPAT_MODE_BASE + COMPAT_MODE_COUNT, dmaModes);
-		diaSetInt(diaCompatConfig, COMPAT_MODE_BASE + COMPAT_MODE_COUNT, dmaMode);
+		diaSetEnum(diaCompatConfig, COMPAT_DMA, dmaModes);
+		diaSetInt(diaCompatConfig, COMPAT_DMA, dmaMode);
 	} else {
 		const char* dmaModes[] = { NULL };
-		diaSetEnum(diaCompatConfig, COMPAT_MODE_BASE + COMPAT_MODE_COUNT, dmaModes);
-		diaSetInt(diaCompatConfig, COMPAT_MODE_BASE + COMPAT_MODE_COUNT, 0);
+		diaSetEnum(diaCompatConfig, COMPAT_DMA, dmaModes);
+		diaSetInt(diaCompatConfig, COMPAT_DMA, 0);
 	}
 
 	diaSetLabel(diaCompatConfig, COMPAT_GAME, support->itemGetName(id));
 		}
 
 		if (support->haveCompatibilityMode == COMPAT_FULL) {
-			diaGetInt(diaCompatConfig, COMPAT_MODE_BASE + COMPAT_MODE_COUNT, &dmaMode);
+			diaGetInt(diaCompatConfig, COMPAT_DMA, &dmaMode);
 			if (dmaMode != 7)
 				configSetInt(configSet, CONFIG_ITEM_DMA, dmaMode);
 			else
 	memcpy((void*)((u32)irx+i), &gid, 5);
 
 	// patches cdvdfsv
-	void *cdvdfsv_irx;
+	/*void *cdvdfsv_irx;
 	int size_cdvdfsv_irx;
 
 	sysGetCDVDFSV(&cdvdfsv_irx, &size_cdvdfsv_irx);
 			break;
 		}
 		p++;
-	}
+	}*/
 
 	char *altStartup = NULL;
 	if (configGetStr(configSet, CONFIG_ITEM_ALTSTARTUP, &altStartup))
 	"0 PSS mode",
 	"Disable DVD-DL",
 	"Disable IGR",
-	"Reduced cdvdfsv buffer",
+	"Unused",
 	"Hide dev9 module",
 	"Alternate IGR combo",
 	"Changing the size will reformat the VMC",

src/supportbase.c

 	memcpy((void*)((u32)cdvdman_irx + i), &gameid, 5);
 
 	// patches cdvdfsv
-	void *cdvdfsv_irx;
+	/*void *cdvdfsv_irx;
 	int size_cdvdfsv_irx;
 
 	sysGetCDVDFSV(&cdvdfsv_irx, &size_cdvdfsv_irx);
 			break;
 		}
 		p++;
-	}
+	}*/
 
 	return compatmask;
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.