diff options
author | Eugene Sandulenko | 2019-08-17 10:11:40 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:34 +0200 |
commit | 45e49a6ba21408043677f68981bd239e5bf4f161 (patch) | |
tree | 1b74bf1f087f04da328bf0f19d8a7ea82b43d693 /engines/hdb/hdb.cpp | |
parent | d7b1e9d38e493337146a231d7a6c0b3856708068 (diff) | |
download | scummvm-rg350-45e49a6ba21408043677f68981bd239e5bf4f161.tar.gz scummvm-rg350-45e49a6ba21408043677f68981bd239e5bf4f161.tar.bz2 scummvm-rg350-45e49a6ba21408043677f68981bd239e5bf4f161.zip |
HDB: Support bootparams for demo
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |