Martin Kiewitz
7b8add291e
SCI: multiple changes for mother goose vga
...
which is sci1 and sci1.1
fixes bug #3051145
- separating this mother goose from ega and sci2.1
- adding workaround when restoring saved games in these games, games try to calculate restored savedgameid instead of looking it up, we patch this code out and also set the global to the current savedgameid
- adding workaround for scripts checking savedgameid to be below 13 (our savedgameids begin at 100 now)
- changing official range for savedgameids from 1000->1999 to 100->199, otherwise mother goose would have required much larger patches and this range should be fine even if we replace savedgame dialogs later
svn-id: r52301
2010-08-23 16:33:19 +00:00
Johannes Schickel
dd38e424e7
SCI: Fix leaks in ResourceManager::listResources caller code.
...
svn-id: r51666
2010-08-02 22:27:26 +00:00
Matthew Hoops
94e8c3a1a8
SCI: Add fallback detection for Mac SCI0 games
...
svn-id: r51620
2010-08-02 14:38:20 +00:00
Filippos Karapetis
7207290dc3
SCI: Enabled the "Return to Launcher" feature (needs testing)
...
svn-id: r51577
2010-08-01 13:11:24 +00:00
Martin Kiewitz
b873cf2ebf
SCI: changes for mother goose sci2.1
...
changed signature for kSetCursor sci2.1
added workarounds
added separate gameid for mother goose sci2.1
svn-id: r51385
2010-07-27 19:09:57 +00:00
Martin Kiewitz
fc1e5c8fae
SCI: adding comments about not enabling ScummVM menu saving
...
svn-id: r51007
2010-07-18 19:19:49 +00:00
Martin Kiewitz
fd27041b35
SCI: disabling saving from scummvm menu
...
svn-id: r50993
2010-07-18 14:21:38 +00:00
Martin Kiewitz
f456b7cfa2
SCI: separating qfg1ega and qfg1vga gameids
...
svn-id: r50881
2010-07-14 11:53:12 +00:00
Martin Kiewitz
d52a872724
SCI: changing gameid of lsl6 sci2.1 into "lsl6hires". We need to keep workarounds etc. separate, scripts are not compatible
...
svn-id: r50829
2010-07-12 19:55:42 +00:00
Max Horn
6ee82a2027
SCI: Introduce SciGameId enum
...
svn-id: r50273
2010-06-25 16:16:29 +00:00
Max Horn
824dd44ddf
SCI: Revise how ResourceManager is instantiated.
...
This should allow for better error handling. Also, it
means that g_sci->getResMan() returns a valid value much sooner,
allowing me to simplify some code.
Also added a note about potentially replacing Common::FSList usage
by Common::Archive (and FSNode by Archive/ArchiveMember ?). This
might be a way to unify the addAppropriateSources variants again.
svn-id: r49825
2010-06-15 12:15:52 +00:00
Eugene Sandulenko
44a39ffbc6
AdvancedDetector: Add new parameter directoryGlobs.
...
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.
svn-id: r49788
2010-06-15 10:59:23 +00:00
Filippos Karapetis
ba3c43498b
- Swapped the return value of gamestate_save (false = failed, true = succeeded)
...
- Removed some duplicate code inside Console::cmdSaveGame()
svn-id: r49688
2010-06-15 08:39:03 +00:00
Eugene Sandulenko
4d517ed0e9
Extended advancedDetector with depth parameter.
...
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.
svn-id: r49653
2010-06-14 14:50:23 +00:00
Filippos Karapetis
93f33c7dab
Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, some camelCase changes
...
svn-id: r49568
2010-06-10 11:18:10 +00:00
Filippos Karapetis
9b8e4e8359
Moved all of the game init/run/exit logic inside the SciEngine class
...
svn-id: r49559
2010-06-10 07:32:05 +00:00
Filippos Karapetis
abcd8e093a
Replaced a leftover Common::File::exists() call in the fallback detector
...
svn-id: r49443
2010-06-05 19:55:03 +00:00
Filippos Karapetis
e9f35fbf4c
Rewrote the remaining parts of the ResourceManager class to work with file streams, thus removing the SCI_detection hack in the fallback detector
...
svn-id: r49438
2010-06-05 14:09:52 +00:00
Matthew Hoops
4493080220
If we can't find the game object or game ID in fallback detection, break out instead of assuming the script is there. Fixes a segfault when detecting an LSCI game.
...
svn-id: r49389
2010-06-02 02:55:55 +00:00
Filippos Karapetis
a6efbf8880
Fixed the detection of SCI2.1 games in the fallback detector
...
svn-id: r49382
2010-06-01 22:06:52 +00:00
Filippos Karapetis
e2a388e2f5
SCI: Enabled saving from the ScummVM menu again
...
svn-id: r49164
2010-05-23 18:03:23 +00:00
Filippos Karapetis
c874ff15a8
Cleaned up the game ID code:
...
- The game ID is now obtained from ScummVM ID directly, not by converting Sierra's internal ID
- Moved the code which reads the internal Sierra ID inside the resource manager
- Moved the code which converts the internal Sierra ID to ScummVM's IDs together with the rest of the detection code
svn-id: r49152
2010-05-23 10:28:03 +00:00
Filippos Karapetis
80ffcc621d
Cleanup
...
svn-id: r49143
2010-05-22 16:54:13 +00:00
Filippos Karapetis
9b6a3712d6
Rewrote and simplified the game ID detector. It now properly works with SCI0-SCI2.1 games
...
svn-id: r49142
2010-05-22 16:50:15 +00:00
Filippos Karapetis
e6ede6bba1
Removed the reliance on the segment manager from the fallback detector, for SCI0-SCI1 games (it still doesn't work with SCI1.1 and newer games, though)
...
svn-id: r49126
2010-05-21 07:51:47 +00:00
Filippos Karapetis
20fcedc34a
Some further work on the fallback detector, reducing the reliance on the segment manager
...
svn-id: r49125
2010-05-21 07:30:37 +00:00
Filippos Karapetis
678411ae5e
Slight bugfix in the object iteration inside getSierraGameId()
...
svn-id: r49110
2010-05-19 23:29:27 +00:00
Filippos Karapetis
480e5c8488
Added a new method to the resource manager, to help determine if we got a SCI1.1 Mac game. Started rewriting the fallback detector so that it doesn't rely on the segment manager to find the internal game ID
...
svn-id: r49102
2010-05-19 15:57:58 +00:00
Matthew Hoops
7344ac20d7
Add support for loading SCI games from Mac resource forks. The games themselves do not work yet as some (not all) of the data is in BE order instead of LE. They currently error out because it thinks the relocation block is outside of the script.
...
svn-id: r48998
2010-05-10 18:29:13 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
ee1110a114
SCI: Reduce header interdependencies
...
svn-id: r48086
2010-02-17 23:38:43 +00:00
Max Horn
903b694574
SCI: Cleanup resource.h
...
svn-id: r48084
2010-02-17 23:37:32 +00:00
Max Horn
26b7f0bbb9
SCI: Remove hack in convertSierraGameId which caused a memory leak
...
svn-id: r48083
2010-02-17 23:36:50 +00:00
Johannes Schickel
044ddf02a0
Fix warning format arguments. (Passing a Common::String ins't that much of a good idea)
...
svn-id: r47743
2010-01-31 10:02:38 +00:00
Filippos Karapetis
f59f03967b
- Fixed saving from the GMM
...
- Grouped game IDs per SCI generation
svn-id: r47742
2010-01-31 08:28:10 +00:00
Filippos Karapetis
7f4aa161bc
Removed duplicate code. Some cleanup
...
svn-id: r47735
2010-01-31 01:26:06 +00:00
Matthew Hoops
eabbe89971
Improve support for the SCI2.1/SCI3 file naming scheme. Multiple maps can be used and have to be matched up with their volume counterparts. Adding detection for the Phantasmagoria Demo too.
...
svn-id: r47588
2010-01-27 04:26:28 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Filippos Karapetis
c46c42ceb0
SCI: Saved games can now be loaded from ScummVM's launcher
...
svn-id: r47423
2010-01-21 22:20:16 +00:00
Martin Kiewitz
055e17b60e
SCI: fixed detection to not crash when adding sierras pinball creep, also changed detection so that we dont "accept" games that use unknown view resources (otherwise pinball creep will get detected as SCI)
...
svn-id: r47348
2010-01-17 22:32:53 +00:00
Martin Kiewitz
11d9f15010
SCI: search for %J in text resources to identify japanese games, switch to upscaled hires when japanese games are started, removed TODO
...
svn-id: r47088
2010-01-06 18:25:43 +00:00
Filippos Karapetis
9a99226d31
Removed a hack from the fallback detector, used to distinguish some demos from their full versions
...
svn-id: r47086
2010-01-06 16:39:48 +00:00
Filippos Karapetis
60ece55fb9
Fallback detector:
...
- Added detection for SCI2 games (GK1, PQ4, QFG4)
- Rewrote the way demos are detected
- Games are no longer distinguished from the existence of certain files
svn-id: r46970
2010-01-04 13:50:43 +00:00
Filippos Karapetis
fabe51c129
Renamed gameName -> gameId, to keep the same vocabulary everywhere
...
svn-id: r46635
2009-12-27 12:54:03 +00:00
Max Horn
429c9eb814
SCI: Don't end warning() format strings with a newline or a period (a newline and an exclamation mark are automatically added)
...
svn-id: r45049
2009-10-13 20:52:05 +00:00
Torbjörn Andersson
57ae40e52c
Fixed a warning, ironically inside a warning().
...
svn-id: r44931
2009-10-11 16:00:16 +00:00
Filippos Karapetis
1d3118cf42
Implemented some advanced savegame functionality - loading and deleting savegames from the GMM is now possible, and new saved games will also have thumbnails. Saving from the GMM creates corrupted saved games, so it has been disabled for now
...
svn-id: r44930
2009-10-11 15:51:43 +00:00
Filippos Karapetis
b91ae69ad2
Removed the now unused GF_SCI0_OLDGETTIME flag and simplified all of the game entries in the detector
...
svn-id: r44856
2009-10-09 23:19:53 +00:00
Filippos Karapetis
c6d2190d2d
Add "demo" to the extras field of the fallback detector for demos
...
svn-id: r44291
2009-09-24 07:18:38 +00:00
Filippos Karapetis
13ad217cdd
- Moved the SCI version in a global variable
...
- Changed all the SCI version checks to use getSciVersion()
- Also made getSciVersionDesc a global function (removes some ugly accessing of the SCI engine)
The fallback detector should work correctly now
svn-id: r44269
2009-09-23 10:55:35 +00:00