Skip to content

Commit b1bee2a

Browse files
committed
mbr: fix cdrom_disable_gameid not working as expected
1 parent d86babd commit b1bee2a

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

mbr/include/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ extern Settings settings;
4848
int loadConfig(void);
4949

5050
// Attempts to load per-title GSM argument from the GSM_CONF_PATH/HOSDGSM_CONF_PATH depending on the device hint
51-
char *getOSDGSMArgument(char *titleID);
51+
char *getOSDGSMArgument(const char *titleID);
5252

5353
#endif

mbr/src/config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ int loadConfig() {
134134
}
135135
if (!strncmp(lineBuffer, "cdrom_disable_gameid", 20)) {
136136
if (atoi(valuePtr))
137-
settings.flags |= FLAG_ENABLE_GAMEID;
138-
else
139137
settings.flags &= ~(FLAG_ENABLE_GAMEID);
138+
else
139+
settings.flags |= FLAG_ENABLE_GAMEID;
140140
continue;
141141
}
142142
if (!strncmp(lineBuffer, "cdrom_use_dkwdrv", 16)) {
@@ -224,7 +224,7 @@ int loadConfig() {
224224
}
225225

226226
// Attempts to load per-title GSM argument from the GSM_CONF_PATH/HOSDGSM_CONF_PATH depending on the device hint
227-
char *getOSDGSMArgument(char *titleID) {
227+
char *getOSDGSMArgument(const char *titleID) {
228228
if (!titleID)
229229
return NULL;
230230

mbr/src/disc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ void handlePS2Disc(char *bootPath, char *eGSMArgument) {
205205
opts.eGSM = eGSMArgument;
206206
}
207207

208-
DPRINTF("argc = %d; argv[0] = %s; argv[1] = %s;\n", opts.argc, opts.argv[0], opts.argv[1]);
209208
loadELF(&opts);
210209
}
211210

0 commit comments

Comments
 (0)