aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
2010-06-18SCI: Rewrap some overlong commentsMax Horn
svn-id: r50012
2010-06-18Error out on unimplemented kDeviceInfo() callsFilippos Karapetis
svn-id: r49993
2010-06-15- Swapped the return value of gamestate_save (false = failed, true = succeeded)Filippos Karapetis
- Removed some duplicate code inside Console::cmdSaveGame() svn-id: r49688
2010-06-07SCI: Adjust kGetSaveFiles for SCI32.Walter van Niftrik
svn-id: r49469
2010-06-04SCI: Replace strncpy with Common::strlcpyWalter van Niftrik
svn-id: r49425
2010-06-04SCI: Add savegame version check in CheckSaveGameWalter van Niftrik
svn-id: r49424
2010-06-04SCI: CleanupWalter van Niftrik
svn-id: r49423
2010-06-03Replace two uses of ::qsort by Common::sort.Johannes Schickel
svn-id: r49418
2010-06-01The system strings segment is a fixed segment of the segment manager, which ↵Filippos Karapetis
doesn't change during the game, thus move all the system strings code and variables inside the segment manager svn-id: r49372
2010-05-03SCI: fix possible heap errorMartin Kiewitz
svn-id: r48908
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-02-13SCI: Move language related code from EngineState to SciEngineMax Horn
svn-id: r48052
2010-02-13SCI: Add global g_sci pointer to the active SciEngine instanceMax Horn
svn-id: r48046
2010-02-02Add support in kString(Cpy) for copying to system strings. Also, stubbing ↵Matthew Hoops
kFileIO(19) to allow Torin to see the main menu. Some minor cleanup. svn-id: r47820
2010-02-01Torin calls K_FILEIO_OPEN without a file mode to open with. Assume that it's ↵Matthew Hoops
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-01-31SCI: Fix regression in KQ5CD caused by r47775.Walter van Niftrik
svn-id: r47778
2010-01-31SCI: Add another DeviceInfo subfunction. Fixes VM crash in MUMG.Walter van Niftrik
svn-id: r47775
2010-01-31Removed duplicate code. Some cleanupFilippos Karapetis
svn-id: r47735
2010-01-30SCI: Correct comments which talked about 'loading from GMM' when they really ↵Max Horn
meant 'loading from launcher' svn-id: r47725
2010-01-30SCI: Remove extra '\n's in debugC messagesWillem Jan Palenstijn
svn-id: r47707
2010-01-30Add support for saving/loading Arrays/Strings in SCI32. It's possible to ↵Matthew Hoops
save a game in GK1 now via the console, but not load (yet). svn-id: r47696
2010-01-27Downgrade the 'attempt to use invalid/unused file handle' error to a ↵Matthew Hoops
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-26Fixed reading of options file (game.opt) for Hoyle 3Filippos Karapetis
svn-id: r47575
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-21SCI: Saved games can now be loaded from ScummVM's launcherFilippos Karapetis
svn-id: r47423
2010-01-10Silenced warnings ("this" isn't defined on object instantiation, and ↵Filippos Karapetis
commented out some unused variables) svn-id: r47237
2010-01-02SCI: implemented new console command "listsaves"Martin Kiewitz
svn-id: r46883
2010-01-01SCI: fixing bad sorting of saved games due MMDDYYYY date savingMartin Kiewitz
svn-id: r46846
2010-01-01SCI: implement kFOpen (OPEN_OR_CREATE), makes it possible to save character ↵Martin Kiewitz
data at the end of qfg1ega svn-id: r46814
2009-12-31SCI: kFileIO findFirst/findNext returns only game-specific prefixed filesMartin Kiewitz
svn-id: r46811
2009-12-31Changed kValidPath() to always return true, regardless of the value of ↵Filippos Karapetis
savePath (so that it works with both SCI11 and SCI32 games) svn-id: r46800
2009-12-30Rename Common::Stream::readLine_NEW to readLineMax Horn
svn-id: r46779
2009-12-30SCI32:Matthew Hoops
- Set signature for Array/String - Add the kernel table differences for the GK2 demo - Implement kMessage changes in SCI32 - Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid) - Add dereferencing for Arrays svn-id: r46756
2009-12-29Removed leftover debug outputFilippos Karapetis
svn-id: r46698
2009-12-25Fix gcc warning (and along with it make the code a little bit easier to read).Johannes Schickel
svn-id: r46542
2009-12-24SCI32:Matthew Hoops
- Fix dup for kArray/kString - Implement kFileIO::rename (SCI1.1) - Implement part of the SCI32 additions to kFileIO - Implement the GetSaveDir part of kSave (SCI2.1) - Torin (SCI2.1!) now shows signs of life -- it will create the torin.prf file with correct data! svn-id: r46521
2009-12-21SCI32:Matthew Hoops
- Fully implement kArray and kIsHiRes and mostly implement kString (printf and atoi subfunctions still missing). - Add a dummy SciGui class for SCI32 to bypass the views. Gabriel Knight 1 will now play the Sierra logo music and the main menu music. - Some other minor SCI32 changes. svn-id: r46462
2009-12-08SCI: Cleanup DirSeeker a little bitMax Horn
svn-id: r46290
2009-11-14Cleaned up the file handling functions and removed the C IO wrappers. ↵Filippos Karapetis
Apparently, the special case that these were meant to handle never occurs (i.e. reading and writing to the same file), and the current code works well enough to justify these extra sanity checks svn-id: r45902
2009-10-29Stop SQ4 floppy from updating the unused sq4sg.dir file when deleting a ↵Filippos Karapetis
saved game svn-id: r45507
2009-10-29- Implemented savegame deletion for SQ4 floppyFilippos Karapetis
- Added a more proper way to disable the "Change Directory" button, by checking its name, rather than the string it contains svn-id: r45504
2009-10-29Disable the "Delete" button for all versions of SQ4 floppy, and the "Change ↵Filippos Karapetis
Directory" button for all games (English and non-English versions) svn-id: r45503
2009-10-29Automatically create memory.drv (the file containing the LSL5 password) for ↵Filippos Karapetis
non-English versions of LSL5, so that the games don't abort if it can't be found. svn-id: r45502
2009-10-29Fixed the deletion of save games - the wrong save game would be deleted with ↵Filippos Karapetis
the previous code, as we sort the list by date svn-id: r45499
2009-10-16Fix for bug #2874489 - "SCI: Larry 3 crashes at startup"Filippos Karapetis
svn-id: r45169
2009-10-09Some const correctness changes; cleanupMax Horn
svn-id: r44850
2009-10-04SCI: Rename EngineState::segMan to _segManMax Horn
svn-id: r44629
2009-09-30Added a new special reg_t, SIGNAL_REG, for signaling when an error occurs ↵Filippos Karapetis
(usually), or to signal success in some special occasions svn-id: r44505
2009-09-30SCI: Make kFile error messages slightly more verboseWillem Jan Palenstijn
svn-id: r44497
2009-09-30Fixed a crash in KQ1SCI, when the user types something wrong - the game ↵Filippos Karapetis
tries to open a file with an empty file name, and an odd file mode svn-id: r44491