From ef841f615e558fe2f51301712da03072e9194033 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 23 Oct 2018 01:32:26 +0300 Subject: SCI32: Always start in the Bridge room in Hoyle 5 Bridge It's the only game included, so there's no point showing the game selection menu in this case. This follows the behavior of the original --- engines/sci/engine/kmisc.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index db2b31097f..92a9cfaf8b 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -415,7 +415,15 @@ reg_t kGetConfig(EngineState *s, int argc, reg_t *argv) { s->_segMan->strcpy(data, ""); } else if (setting == "game") { // Hoyle 5 startup, specifies the number of the game to start. - s->_segMan->strcpy(data, ""); + if (g_sci->getGameId() == GID_HOYLE5 && + !g_sci->getResMan()->testResource(ResourceId(kResourceTypeScript, 100)) && + g_sci->getResMan()->testResource(ResourceId(kResourceTypeScript, 700))) { + // Special case for Hoyle 5 Bridge: only one game is included (Bridge), + // so mimic the setting in 700.cfg and set the starting room number to 700. + s->_segMan->strcpy(data, "700"); + } else { + s->_segMan->strcpy(data, ""); + } } else if (setting == "laptop") { // Hoyle 5 startup. s->_segMan->strcpy(data, ""); -- cgit v1.2.3