aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
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
2009-09-29- Changed the unimplemented debug SCI kernel functions (InspectObj, ↵Filippos Karapetis
ShowSends, ShowObjs, ShowFree, StackUsage and Profiler) to be dummy functions - we have our own debugger, and don't use these functions for debugging - Removed the function number parameter from all kernel functions, as it's no longer needed, and removed the FAKE_FUNCT_NR hack - Removed kUnknown() and kStub() - Dummy/unknown kernel functions are no longer invoked, and a warning is shown instead, with the paremeters passed to them Note: there is an evil hack used for debugging scripts in invoke_selector(), which probably no longer works now svn-id: r44461
2009-09-27SCI: Remove directory prefix added by QfG3's char importWillem Jan Palenstijn
svn-id: r44423
2009-09-27SCI: Add workaround for file mask used by QfG3Willem Jan Palenstijn
svn-id: r44411
2009-09-27SCI: Major string handling update.Willem Jan Palenstijn
All string access to segments should now work with both raw and non-raw (reg_t) segments, using the new utility functions in segMan. There will likely be regressions. svn-id: r44388
2009-09-26SCI: Ignore size argument to FILEIO_WRITE_STRING.Willem Jan Palenstijn
This matches LSL5's expectations when saving the password. svn-id: r44385
2009-09-26SCI: Fix copy/paste errorWillem Jan Palenstijn
svn-id: r44382
2009-09-25Create a define for the special "signal" offset used throughout the engine, ↵Filippos Karapetis
and fixed the arbitrary 0 values from commit #44294, set when some math functions do invalid calculations svn-id: r44359
2009-09-25SCI: Remove EngineState::game_version, it was only used for saving anyway. ↵Max Horn
Also remove syncCStr() svn-id: r44358
2009-09-24Fix warnings.Johannes Schickel
svn-id: r44304
2009-09-23COMMON: Add "ignoreCase" parameter to matchString.Johannes Schickel
svn-id: r44265
2009-09-14SCI: Rename SegManager::kernelDeref*() methods to SegManager::deref*()Max Horn
svn-id: r44083
2009-09-14SCI: kernelDeref*() functions are now seSegmentManager methodsMax Horn
svn-id: r44082
2009-09-14SCI: Merge kernelDerefCharPtr and kernelDerefString and change it from a ↵Max Horn
macro to a function svn-id: r44081