From 45e49a6ba21408043677f68981bd239e5bf4f161 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 17 Aug 2019 10:11:40 +0200 Subject: HDB: Support bootparams for demo --- engines/hdb/hdb.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 68f505b931..1eaa102927 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -925,7 +925,7 @@ Common::Error HDBGame::run() { #endif if (ConfMan.hasKey("boot_param")) { - char mapname[11]; + char mapname[20]; int arg = ConfMan.getInt("boot_param"); int actionMode = MIN(arg / 100, 1); int level = MIN(arg % 100, 31); @@ -937,6 +937,9 @@ Common::Error HDBGame::run() { else strcpy(mapname, "CINE_OUTRO"); + if (isDemo()) + strncat(mapname, "_DEMO", 20); + debug("Starting level %s in %s", mapname, getActionMode() ? "Action Mode" : "Puzzle Mode"); _ai->clearPersistent(); -- cgit v1.2.3