diff options
author | Filippos Karapetis | 2009-08-17 05:55:21 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-08-17 05:55:21 +0000 |
commit | c38f58598bfc35aa6c1a413e6f1369d5f09ca819 (patch) | |
tree | 08a6f03f0b7a1a364d4180e84ff97b1c0b26000c /engines/sci/detection.cpp | |
parent | 0d4fc8169879e0ec476b45fa58601d69e6e0db3c (diff) | |
download | scummvm-rg350-c38f58598bfc35aa6c1a413e6f1369d5f09ca819.tar.gz scummvm-rg350-c38f58598bfc35aa6c1a413e6f1369d5f09ca819.tar.bz2 scummvm-rg350-c38f58598bfc35aa6c1a413e6f1369d5f09ca819.zip |
- Simplified some functions to accept only the parts of the EngineState they need as parameters, instead of the whole EngineState
- Moved the class table in the Segment manager - it's the only class using it directly
- Removed the sci11 flag from save games (we already know this, we don't need to store it)
- Moved script_get_segment() and get_class_address() inside the segment manager class
- Removed the script_locate_by_segment wrapper
- Simplified script_lookup_export() a lot by removing some paranoia checks
- Added some WIP code for automatically determining the game id in the fallback detector (still not working)
- General cleanup
svn-id: r43458
Diffstat (limited to 'engines/sci/detection.cpp')
-rw-r--r-- | engines/sci/detection.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 3df5bdb63a..88bd0d63c3 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -28,6 +28,7 @@ #include "sci/sci.h" #include "sci/exereader.h" +#include "sci/engine/seg_manager.h" namespace Sci { @@ -3086,6 +3087,19 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl s_fallbackDesc.desc.platform = exePlatform; s_fallbackDesc.desc.flags = ADGF_NO_FLAGS; +#if 0 + // Determine the game id + // TODO + ResourceManager *resMgr = new ResourceManager(256 * 1024); + SciVersion version = resMgr->sciVersion(); + SegManager *segManager = new SegManager(resMgr, version); + reg_t game_obj = script_lookup_export(segManager, 0, 0); + Common::String gameName = obj_get_name(segManager,version, game_obj); + debug(2, " \"%s\" at %04x:%04x", gameName.c_str(), PRINT_REG(game_obj)); + delete segManager; + delete resMgr; +#endif + printf("If this is *NOT* a fan-modified version (in particular, not a fan-made\n"); printf("translation), please, report the data above, including the following\n"); printf("version number, from the game's executable:\n"); |