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
This commit is contained in:
parent
602b7d816c
commit
ef841f615e
1 changed files with 9 additions and 1 deletions
|
@ -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, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue