Martin Kiewitz
b192de5423
SCI: changing signature of kRestoreGame
...
and changing patch code accordingly
svn-id: r52320
2010-08-24 09:11:53 +00:00
Martin Kiewitz
d5d8434fd6
SCI: now pausing/unpausing music in replaced restore dialog
...
dialog will not get replaced in sci32, nor in mother goose. Enable by adding "scireplacedialog" inside scummvm section of scummvm.ini file. Note: this feature is experimental
svn-id: r52318
2010-08-24 09:00:53 +00:00
Martin Kiewitz
e93eaa0d95
SCI: some more work on replacing restore dialog
...
svn-id: r52314
2010-08-23 23:04:07 +00:00
Martin Kiewitz
45a87ffe3f
SCI: some work on replacing sierra restore dialog
...
svn-id: r52305
2010-08-23 19:10:06 +00:00
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
Filippos Karapetis
23d4177d20
SCI: Check for EOF and errors when reading from a file. Fixes bug #3049360 - "SCI: Bug in file read/write operations"
...
svn-id: r52298
2010-08-23 12:56:41 +00:00
Matthew Hoops
3677a8a382
SCI: Fix a bug in kFileIOWriteString. The first return statement should go inside the if-statement.
...
svn-id: r52269
2010-08-22 03:50:42 +00:00
Filippos Karapetis
3faae2a831
Reverted part of r52256, it's not really undefined behavior (the two parts of the bitwise OR aren't reading from the same source)
...
svn-id: r52258
2010-08-21 13:24:09 +00:00
Filippos Karapetis
d986a78834
SCI: Fixed potentially undefined behavior
...
svn-id: r52256
2010-08-21 13:03:35 +00:00
Filippos Karapetis
849ccc9eab
SCI: Changed a warning into a debugC
...
svn-id: r52220
2010-08-20 07:38:33 +00:00
Martin Kiewitz
d42d7ad6c5
SCI: allowing kCheckSaveGame with id 0
...
qfg2 - when trying to restore from an empty saved game list
svn-id: r51663
2010-08-02 21:44:41 +00:00
Matthew Hoops
75b5ac38fb
SCI: Fix saving/restoring games in fan games
...
The SCI Studio function library incorrectly calls kDeviceInfo with one parameter to get the current device.
svn-id: r51514
2010-07-30 18:45:28 +00:00
Martin Kiewitz
7e545888fd
SCI: moving some fileio warnings to debug level
...
svn-id: r51392
2010-07-27 20:46:12 +00:00
Martin Kiewitz
3cae0f3452
SCI: kCheckFreeSpace support for sci1.1
...
and possible sci32
svn-id: r51383
2010-07-27 18:45:32 +00:00
Martin Kiewitz
c721b4d612
SCI: some changes for kq7
...
- resetting negative plane left/top
- kSave(0) returns SIGNAL
svn-id: r51281
2010-07-25 19:47:12 +00:00
Filippos Karapetis
9862f3fe24
SCI: Moved the SCI32 kernel functions out of kernel32.cpp and into their respective files
...
svn-id: r51108
2010-07-21 21:18:21 +00:00
Martin Kiewitz
525794927e
SCI: fix regression of r50896, behaviour of kFileIO(readString) is supposed to return the string instead of the size, fixes signature mismatch in hoyle 3
...
svn-id: r50977
2010-07-18 04:25:57 +00:00
Martin Kiewitz
625af1260b
SCI: checking if within kernel function before overwrite a save (thx @ digitall)
...
svn-id: r50962
2010-07-17 17:58:50 +00:00
Martin Kiewitz
72faf78b82
SCI: adding support to qfg4 to import qfg3 character data
...
svn-id: r50911
2010-07-15 06:04:52 +00:00
Martin Kiewitz
3195ab099a
SCI: added signatures for kFileIO, some changes to actual kFileIO code, removed some CHECKMEs/TODOs
...
svn-id: r50896
2010-07-14 22:07:36 +00:00
Martin Kiewitz
5e2758394c
SCI: returning DOS error code on kFileIO(unlink)
...
svn-id: r50895
2010-07-14 21:17:56 +00:00
Martin Kiewitz
14e25d138c
SCI: fix regression of r50831 - we want to abort when unknown savegameIds are used, not the other way round :P
...
svn-id: r50887
2010-07-14 14:55:22 +00:00
Filippos Karapetis
1cb5305083
Fixed loading saved games from the launcher, broken in rev. 50831
...
svn-id: r50864
2010-07-14 02:12:58 +00:00
Martin Kiewitz
6ff4dd2d91
SCI: changing how savegame ids are handled internally. Using range 0-999 so that scripts are able to signal us to create new slots, using range 1000-1999 for official slots. fixes lsl6 quicksave overwriting wrong save slots
...
svn-id: r50831
2010-07-12 22:26:48 +00:00
Martin Kiewitz
0c42441426
SCI: added TODO for saved games
...
svn-id: r50828
2010-07-12 19:41:26 +00:00
Martin Kiewitz
e807983e8f
SCI: removed unused debug flags, changed fileio debug prints to only happen on debugflag "file"
...
svn-id: r50782
2010-07-10 14:00:43 +00:00
Max Horn
bb528d894c
SCI: Rewrap some overlong comments
...
svn-id: r50012
2010-06-18 09:37:06 +00:00
Filippos Karapetis
31930b6d09
Error out on unimplemented kDeviceInfo() calls
...
svn-id: r49993
2010-06-18 02:09:12 +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
Walter van Niftrik
b04535d487
SCI: Adjust kGetSaveFiles for SCI32.
...
svn-id: r49469
2010-06-07 02:11:01 +00:00
Walter van Niftrik
997fdac427
SCI: Replace strncpy with Common::strlcpy
...
svn-id: r49425
2010-06-04 10:51:27 +00:00
Walter van Niftrik
a8acf7468c
SCI: Add savegame version check in CheckSaveGame
...
svn-id: r49424
2010-06-04 10:36:49 +00:00
Walter van Niftrik
f1a55a9c67
SCI: Cleanup
...
svn-id: r49423
2010-06-04 10:15:13 +00:00
Johannes Schickel
664c86f25d
Replace two uses of ::qsort by Common::sort.
...
svn-id: r49418
2010-06-03 23:37:05 +00:00
Filippos Karapetis
e083c20da1
The system strings segment is a fixed segment of the segment manager, which doesn't change during the game, thus move all the system strings code and variables inside the segment manager
...
svn-id: r49372
2010-06-01 14:41:48 +00:00
Martin Kiewitz
98aa8b195a
SCI: fix possible heap error
...
svn-id: r48908
2010-05-03 13:55:49 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
b9a11ddb0b
SCI: Move language related code from EngineState to SciEngine
...
svn-id: r48052
2010-02-13 17:46:44 +00:00
Max Horn
ac4d325e0d
SCI: Add global g_sci pointer to the active SciEngine instance
...
svn-id: r48046
2010-02-13 17:42:49 +00:00
Matthew Hoops
66b326d3e8
Add support in kString(Cpy) for copying to system strings. Also, stubbing kFileIO(19) to allow Torin to see the main menu. Some minor cleanup.
...
svn-id: r47820
2010-02-02 19:45:22 +00:00
Matthew Hoops
af52e2caf0
Torin calls K_FILEIO_OPEN without a file mode to open with. Assume that it's opening the file for reading as it appears that it is just testing if it exists. Torin (and the demo) progress a little farther now.
...
svn-id: r47790
2010-02-01 03:59:48 +00:00
Walter van Niftrik
c66a6db213
SCI: Fix regression in KQ5CD caused by r47775.
...
svn-id: r47778
2010-01-31 21:11:36 +00:00
Walter van Niftrik
4acb18f6b9
SCI: Add another DeviceInfo subfunction. Fixes VM crash in MUMG.
...
svn-id: r47775
2010-01-31 19:46:46 +00:00
Filippos Karapetis
7f4aa161bc
Removed duplicate code. Some cleanup
...
svn-id: r47735
2010-01-31 01:26:06 +00:00
Max Horn
4f4b559d1c
SCI: Correct comments which talked about 'loading from GMM' when they really meant 'loading from launcher'
...
svn-id: r47725
2010-01-30 19:06:24 +00:00
Willem Jan Palenstijn
06bd17ee71
SCI: Remove extra '\n's in debugC messages
...
svn-id: r47707
2010-01-30 11:59:05 +00:00
Matthew Hoops
da46fc9b35
Add support for saving/loading Arrays/Strings in SCI32. It's possible to save a game in GK1 now via the console, but not load (yet).
...
svn-id: r47696
2010-01-30 02:03:59 +00:00
Matthew Hoops
0717491b5b
Downgrade the 'attempt to use invalid/unused file handle' error to a warning. This fixes the GK2 demo which now is playable and the slideshow is viewable. The GK2 demo scripts attempt to open the VERSION file which does not exist.
...
svn-id: r47589
2010-01-27 04:48:50 +00:00
Filippos Karapetis
d5724a2eda
Fixed reading of options file (game.opt) for Hoyle 3
...
svn-id: r47575
2010-01-26 21:27:13 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00