Skip to content

Commit 44a3ef6

Browse files
Merge pull request #69 from NathanNeurotic/codex/update-osdinitsystempaths-condition
Handle default region clamp in OSDInitSystemPaths
2 parents 2b5968e + 00d98a7 commit 44a3ef6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/OSDInit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ void OSDInitSystemPaths(void)
8080
int region;
8181
const char regions[CONSOLE_REGION_COUNT] = {'I', 'A', 'E', 'C'};
8282

83+
/* OSDGetConsoleRegion() clamps invalid regions to the default. */
8384
region = OSDGetConsoleRegion();
84-
if (region >= 0 && region < CONSOLE_REGION_COUNT) {
85+
if (region < CONSOLE_REGION_COUNT) {
8586
SystemDataFolder[1] = regions[region];
8687
SystemExecFolder[1] = regions[region];
8788
DVDPLExecFolder[1] = regions[region];

0 commit comments

Comments
 (0)