diff options
author | Max Horn | 2003-03-05 19:04:34 +0000 |
---|---|---|
committer | Max Horn | 2003-03-05 19:04:34 +0000 |
commit | 5ffeedb1cbea471b3d902da96767ffad168023c5 (patch) | |
tree | 5ba28837ca5499b4ae6edcab35d5522c63612a1b /common/gameDetector.cpp | |
parent | f02506f9931c3b4d7eb97887e16228623461011b (diff) | |
download | scummvm-rg350-5ffeedb1cbea471b3d902da96767ffad168023c5.tar.gz scummvm-rg350-5ffeedb1cbea471b3d902da96767ffad168023c5.tar.bz2 scummvm-rg350-5ffeedb1cbea471b3d902da96767ffad168023c5.zip |
Patch #697312: Beneath a Steel Sky interim/initial support patch
svn-id: r6691
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r-- | common/gameDetector.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index c9d1e37608..9feaf9dca0 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -191,12 +191,16 @@ GameDetector::GameDetector() // Gather & combine the target lists from the modules const VersionSettings *scummVersions = Engine_SCUMM_targetList(); const VersionSettings *simonVersions = Engine_SIMON_targetList(); + const VersionSettings *skyVersions = Engine_SKY_targetList(); + int scummCount = countVersions(scummVersions); int simonCount = countVersions(simonVersions); + int skyCount = countVersions(skyVersions); - VersionSettings *v = (VersionSettings *)calloc(scummCount + simonCount + 1, sizeof(VersionSettings)); + VersionSettings *v = (VersionSettings *)calloc(scummCount + simonCount + skyCount + 1, sizeof(VersionSettings)); memcpy(v, scummVersions, scummCount * sizeof(VersionSettings)); memcpy(v+scummCount, simonVersions, simonCount * sizeof(VersionSettings)); + memcpy(v+skyCount, skyVersions, skyCount * sizeof(VersionSettings)); version_settings = v; } } |