We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5968e commit 00d98a7Copy full SHA for 00d98a7
1 file changed
src/OSDInit.c
@@ -80,8 +80,9 @@ void OSDInitSystemPaths(void)
80
int region;
81
const char regions[CONSOLE_REGION_COUNT] = {'I', 'A', 'E', 'C'};
82
83
+ /* OSDGetConsoleRegion() clamps invalid regions to the default. */
84
region = OSDGetConsoleRegion();
- if (region >= 0 && region < CONSOLE_REGION_COUNT) {
85
+ if (region < CONSOLE_REGION_COUNT) {
86
SystemDataFolder[1] = regions[region];
87
SystemExecFolder[1] = regions[region];
88
DVDPLExecFolder[1] = regions[region];
0 commit comments