From d74009d720ce119eed44635f8b90e2745dc263cf Mon Sep 17 00:00:00 2001 From: Tom Pritchard Date: Sat, 28 Sep 2024 18:35:39 +0100 Subject: [PATCH] Hold a button on start to force opl's interface force to 480p --- README.md | 4 ++++ src/opl.c | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42055b5a4..0113f4c00 100644 --- a/README.md +++ b/README.md @@ -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". +

diff --git a/src/opl.c b/src/opl.c index 363576ba8..49ccdc2ea 100644 --- a/src/opl.c +++ b/src/opl.c @@ -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);