aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
2013-04-27SCI: Change wording for bug/further info referencesFilippos Karapetis
2013-03-21SCI: Fix loading in JonesFilippos Karapetis
This has been broken for a (very) long time, a regression from commit 6ff4dd2
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-07-27SCI: Add support for kCD(0) with a parameterFilippos Karapetis
It's now possible to start a chapter in Phantasmagoria 1
2012-07-04SCI: FileIO subop 19 checks for directory validityFilippos Karapetis
This is used in Torin's Passage and LSL7 when autosaving
2012-06-18SCI: Add setter/getter methods to reg_t'sFilippos Karapetis
No functionality change has been made with this commit. This avoids setting and getting the reg_t members directly, and is the basis of any future work on large SCI3 scripts (larger than 64KB)
2012-06-13SCI: Fix the loading screen and the loading functionality in ShiversFilippos Karapetis
Shivers uses extra special hardcoded save files together with the normal ones that are used to store slot names and spot descriptions. The scheme is a bit odd, and since the names of the extra save files are hardcoded, this scheme is problematic to use. We skip the creation of these files altogether and use virtual files instead, which means that the (broken) spot descriptions won't be visible next to each save description. This isn't a major issue for now, and it's left as a future TODO to implement this feature in a cleaner way, and not with extra save files. This scheme fixes the slot descriptions in the loading screen. Also, kCD(1) has been implemented, which fixes loading of the save states themselves
2012-06-13SCI: Shuffle the kernel functions inside kfile.cppFilippos Karapetis
This puts them in the order that they are defined in the kernel tables
2012-06-13SCI: Use the later SCI file functions for the SCI0 onesFilippos Karapetis
They are essentially the same (with the exception of the return values), so unifying them reduces code duplication
2012-06-13SCI: Change kSave() to be a kernel function with subopsFilippos Karapetis
2012-06-13SCI: Move all file-related functions in file.*Filippos Karapetis
This way, there is a clear separation of the actual SCI kernel file functions and the file classes and wrappers of ScummVM
2012-06-13SCI: Reorder the file kernel functions a bitFilippos Karapetis
2012-06-13SCI: Implement the file operations needed for the save dialog in PhantasmagoriaFilippos Karapetis
Phantasmagoria's scripts keep polling for the existence of the savegame index file and request to read and write it using the same parameters when opening it. The index file is closed and reopened for every save slot, which is slow and can be much slower on non-desktop devices. Also, the game scripts request seeking in writable streams and request to expand the existing index file. To provide this functionality and to reduce constant slow file opening and closing, this virtual class has been introduced
2012-06-10GUI: Refactor default savegame description creation.Johannes Schickel
Formerly the GMM, AGI and SCI duplicated the logic for USE_SAVEGAME_TIMESTAMP. Now I added a method to SaveLoadChooser instead, which takes care of this. This might not be the best placement of such a functionality, thus I added a TODO which talks about moving it to a better place.
2012-06-10GUI: Add helper to SaveLoadChooser, which uses the currently active target.Johannes Schickel
This reduces the code duplication in all client code, which formerly duplicated the querying of the plugin, game id etc. and now simply calls the newly added method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10GUI: Get rid of SaveLoadChooser::setSaveMode.Johannes Schickel
We already pass the title and process button name to the constructor of SaveLoadChooser and then do not offer any way of changing it, thus changing the edit mode of the chooser is kind of pointless and was never actually used. Instead we pass the mode on SaveLoadChooser construction now.
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