aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v72he.cpp22
-rw-r--r--scumm/scumm.cpp6
2 files changed, 6 insertions, 22 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 79ae29e9c1..e110cba9f3 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1672,28 +1672,6 @@ void ScummEngine_v72he::o72_openFile() {
debug(0,"Converted filename to %s", filename);
}
- // Original games read path & filenames from INI file
- // We only need to add the required game name
- if (!strcmp((char *)filename,".he3")) {
- // For freddicove (Unencrypted and Updated Ru)
- memset(filename, 0, sizeof(filename));
- sprintf((char *)filename, "%s.he3", _gameName.c_str());
- debug(0,"New filename %s", filename);
-
- } else if (!strcmp((char *)filename,".he7")) {
- // For mustard
- memset(filename, 0, sizeof(filename));
- sprintf((char *)filename, "%s.he7", _gameName.c_str());
- debug(0,"New filename %s", filename);
-
- } else if (!strcmp((char *)filename,".HE9")) {
- // For bb2demo
- memset(filename, 0, sizeof(filename));
- sprintf((char *)filename, "%s.he9", _gameName.c_str());
- debug(0,"New filename %s", filename);
-
- }
-
if (_substResFileNameIndex > 0) {
char buf1[128];
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 34cad72d71..423365b606 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1636,6 +1636,12 @@ void ScummEngine_v99he::scummInit() {
ScummEngine_v90he::scummInit();
_hePalettes = (uint8 *)malloc((_numPalettes + 1) * 1024);
+
+ // Array 129 is set to base name
+ int len = resStrLen((const byte *)_gameName.c_str()) + 1;
+ ArrayHeader *ah = defineArray(129, kStringArray, 0, 0, 0, len);
+ memcpy(ah->data, _gameName.c_str(), len);
+
}
void ScummEngine::setupMusic(int midi) {