Skip to content

Commit

Permalink
Merge pull request #1332 from Pritchy96/select-auto-video-mode
Browse files Browse the repository at this point in the history
Hold a button on start to force opl's interface force to 480p (Auto)
  • Loading branch information
AKuHAK authored Sep 30, 2024
2 parents d9461d0 + d74009d commit f10b920
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,5 +299,9 @@ Since 05/07/2021 every OPL build dispatched to the release section of this repos

> Main game executable could not be found. Either game is fragmented or image is corrupted
### OPL does not display anything on boot

> You may have selected a Video Mode which your TV does not support. Hold Triangle and Cross while OPL initializes to reset your video mode to "Auto".
</p>
</details>
10 changes: 9 additions & 1 deletion src/opl.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,15 @@ static void _loadConfig()
configGetInt(configOPL, CONFIG_OPL_ENABLE_NOTIFICATIONS, &gEnableNotifications);
configGetInt(configOPL, CONFIG_OPL_ENABLE_COVERART, &gEnableArt);
configGetInt(configOPL, CONFIG_OPL_WIDESCREEN, &gWideScreen);
configGetInt(configOPL, CONFIG_OPL_VMODE, &gVMode);

if (!(getKeyPressed(KEY_TRIANGLE) && getKeyPressed(KEY_CROSS))) {
configGetInt(configOPL, CONFIG_OPL_VMODE, &gVMode);
} else {
LOG("--- Select held at boot - setting Video Mode to Auto ---\n");
gVMode = 0;
configSetInt(configOPL, CONFIG_OPL_VMODE, gVMode);
}

configGetInt(configOPL, CONFIG_OPL_XOFF, &gXOff);
configGetInt(configOPL, CONFIG_OPL_YOFF, &gYOff);
configGetInt(configOPL, CONFIG_OPL_OVERSCAN, &gOverscan);
Expand Down

0 comments on commit f10b920

Please sign in to comment.