aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
2012-05-26SCI: Add a TODO in kFileIOReadRawFilippos Karapetis
2012-05-26SCI: Bugfix for kFileIOReadRawFilippos Karapetis
Avoid overwriting the target buffer with junk when no data has been read
2012-05-14SCI: kMakeSaveFileName is actually using virtual savegame IDsFilippos Karapetis
2012-05-14SCI: Implement savegame deletion functionality in SCI32Filippos Karapetis
This is based on two kernel functions, kMakeSaveCatName and kMakeSaveFileName
2012-03-08SCI: Fix KQ6 Mac movies with resource fork namesMatthew Hoops
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2011-10-30SCI: Removed the hack for the creation of LARRY3.DRV, used in LSL3Filippos Karapetis
This is no longer necessary, as our file I/O code handles this case correctly now. Also, updated the description of file I/O on top.
2011-10-29SCI: Added a new debug flag, "DebugMode" for SCI32 gamesFilippos Karapetis
This is used to enable the embedded debugger in several SCI32 games (PQ4, QFG4, GK1, GK2, KQ7, SQ6 and LSL7)
2011-10-12SCI: kSave(3) is kCheckSaveGame() and kSave(6) is kFileIOUnlink()Filippos Karapetis
2011-10-09SCI2+: Added info for the extra parameter used in kGetSaveDir in SCI32Filippos Karapetis
The warning can be safely removed, as the parameter is a string that should not be set
2011-09-23SCI: change savegame default description day format to YYYY.MM.DDTarek Soliman
... and make it optional subject to USE_SAVEGAME_TIMESTAMP
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-03ENGINES: Remove some uses of g_engineMax Horn
2011-06-03SCI: Switch some char* to Common::String&Max Horn
2011-05-25ALL: behaviour -> behaviorMatthew Hoops
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-03-09SCI32: Reroute kSave(5) to kGetSaveFiles(). Any differences to pre-SCI32Lars Skovlund
kGetSaveFiles() should be worked out there.
2011-03-04SCI21: kSave(1) is kRestoreGamemd5
2011-02-26SCI: Fixed a memory leak. Thanks to digitall for finding this using Valgrindmd5
2011-02-10SCI: Fix (rare) leak in kSaveGame, tweak kFileIOFindNext, cleanupMax Horn
svn-id: r55867
2011-02-07GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTargetMax Horn
This avoids hiding an overloaded virtual method, which in turn can cause weird bugs (see also the next commit). svn-id: r55815
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