aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
2011-01-08SCI2.1: Added/documented some functionality used by Shivers 1Filippos Karapetis
- Added kFileIO subop 17 (create save slot) - Added information about a (probably debug) kernel function used in a puzzle, kCelInfo - Added some information on two kSave subops - Added 2 workarounds for uninitialized variables svn-id: r55158
2011-01-01SCI: debugC calls no longer require a debug level of 2 to show outputFilippos Karapetis
svn-id: r55086
2010-12-07SCI: Removed the system strings code and replaced it with a much more ↵Filippos Karapetis
simplified version, thus greatly simplifying handling of system strings svn-id: r54805
2010-11-11SCI: kSave case 0 is actually kSaveGame. Based on a patch by lskovlunFilippos Karapetis
svn-id: r54215
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-31SCI: Play time related changesFilippos Karapetis
- Added support for savegame play time - Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime) - Renamed some variables to camelCase svn-id: r53974
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-12i18n: Translate Save and Restore buttons in SCI engineThierry Crozat
svn-id: r52694
2010-09-08SCI: adding save description, if none was enteredMartin Kiewitz
fixes bug #3061964 svn-id: r52637
2010-08-30SCI: fix warningMartin Kiewitz
svn-id: r52457
2010-08-30SCI: adding comments for r52450Martin Kiewitz
svn-id: r52451
2010-08-30SCI: check filesize of qfg import filesMartin Kiewitz
filter out files that are larger than 1k, actually removes real saved games from the list svn-id: r52450
2010-08-30SCI: reverting r52448Martin Kiewitz
broke importing, also savedgames are named "qfg1.0xx", so they werent showed before anyway and ".sav" is not mandatory for exported character files. svn-id: r52449
2010-08-29SCI: Only show exported characters in the QFG import screens.Filippos Karapetis
QFG can't import saved games, thus there is no point in including them in the character import screens. svn-id: r52448
2010-08-29SCI: fix warning (thx wjp, thank you not msvc)Martin Kiewitz
svn-id: r52443
2010-08-29SCI: fix buildMartin Kiewitz
svn-id: r52442
2010-08-29SCI: adding virtual lists for qfg-import roomsMartin Kiewitz
now lists import files of all possible games, adds game title before that, removes game prefixes for all files svn-id: r52441
2010-08-29SCI: fixed debug outputFilippos Karapetis
svn-id: r52438
2010-08-29SCI: Throw a warning in QFG import screens for unmatched filesFilippos Karapetis
The original SCI games supported up to 12 characters for file names, thus we use the file name returned as a mask to find the actual file, as we don't wrap/unwrap save file names in these screens. If no files match, or if more than 1 files match, throw a warning. svn-id: r52437
2010-08-29SCI: Added proper handling of QFG exported character files.Filippos Karapetis
Now, QFG2, 3 and 4 may read exported characters from all other QFG games, like the originals did. Fixes bug #3054692 - "QFG2/QFG3 Import issues". svn-id: r52430
2010-08-26SCI: adjust r52397Martin Kiewitz
actually they return 0:0, when no bytes were read, otherwise they return the destination pointer svn-id: r52398
2010-08-26SCI: kFileIOReadString/kFGets return byte countMartin Kiewitz
in sierra sci of read bytes svn-id: r52397
2010-08-25SCI: Return empty string from fgets with maxsize 1Willem Jan Palenstijn
This should fix r3049360 in Hoyle4. svn-id: r52396
2010-08-24SCI: replacing save dialog as wellMartin Kiewitz
experimental feature - enable by putting "scireplacedialog=true" inside scummvm section of scummvm.ini LSL6 currently loses the ability to quicksave, when using the feature. Although i don't see it as a huge loss. That way it's now possible to save to up to 100 slots instead of just 20. svn-id: r52345
2010-08-24SCI: more work on replacing save dialogMartin Kiewitz
also removing some previous code, because it wont work that way svn-id: r52342
2010-08-24SCI: changing signature of kRestoreGameMartin Kiewitz
and changing patch code accordingly svn-id: r52320
2010-08-24SCI: now pausing/unpausing music in replaced restore dialogMartin Kiewitz
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-23SCI: some more work on replacing restore dialogMartin Kiewitz
svn-id: r52314
2010-08-23SCI: some work on replacing sierra restore dialogMartin Kiewitz
svn-id: r52305
2010-08-23SCI: multiple changes for mother goose vgaMartin Kiewitz
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-23SCI: Check for EOF and errors when reading from a file. Fixes bug #3049360 - ↵Filippos Karapetis
"SCI: Bug in file read/write operations" svn-id: r52298
2010-08-22SCI: Fix a bug in kFileIOWriteString. The first return statement should go ↵Matthew Hoops
inside the if-statement. svn-id: r52269
2010-08-21Reverted part of r52256, it's not really undefined behavior (the two parts ↵Filippos Karapetis
of the bitwise OR aren't reading from the same source) svn-id: r52258
2010-08-21SCI: Fixed potentially undefined behaviorFilippos Karapetis
svn-id: r52256
2010-08-20SCI: Changed a warning into a debugCFilippos Karapetis
svn-id: r52220
2010-08-02SCI: allowing kCheckSaveGame with id 0Martin Kiewitz
qfg2 - when trying to restore from an empty saved game list svn-id: r51663
2010-07-30SCI: Fix saving/restoring games in fan gamesMatthew Hoops
The SCI Studio function library incorrectly calls kDeviceInfo with one parameter to get the current device. svn-id: r51514
2010-07-27SCI: moving some fileio warnings to debug levelMartin Kiewitz
svn-id: r51392
2010-07-27SCI: kCheckFreeSpace support for sci1.1Martin Kiewitz
and possible sci32 svn-id: r51383
2010-07-25SCI: some changes for kq7Martin Kiewitz
- resetting negative plane left/top - kSave(0) returns SIGNAL svn-id: r51281
2010-07-21SCI: Moved the SCI32 kernel functions out of kernel32.cpp and into their ↵Filippos Karapetis
respective files svn-id: r51108
2010-07-18SCI: fix regression of r50896, behaviour of kFileIO(readString) is supposed ↵Martin Kiewitz
to return the string instead of the size, fixes signature mismatch in hoyle 3 svn-id: r50977
2010-07-17SCI: checking if within kernel function before overwrite a save (thx @ digitall)Martin Kiewitz
svn-id: r50962
2010-07-15SCI: adding support to qfg4 to import qfg3 character dataMartin Kiewitz
svn-id: r50911
2010-07-14SCI: added signatures for kFileIO, some changes to actual kFileIO code, ↵Martin Kiewitz
removed some CHECKMEs/TODOs svn-id: r50896
2010-07-14SCI: returning DOS error code on kFileIO(unlink)Martin Kiewitz
svn-id: r50895
2010-07-14SCI: fix regression of r50831 - we want to abort when unknown savegameIds ↵Martin Kiewitz
are used, not the other way round :P svn-id: r50887
2010-07-14Fixed loading saved games from the launcher, broken in rev. 50831Filippos Karapetis
svn-id: r50864
2010-07-12SCI: changing how savegame ids are handled internally. Using range 0-999 so ↵Martin Kiewitz
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-12SCI: added TODO for saved gamesMartin Kiewitz
svn-id: r50828