aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
2009-05-30- Removed debug_mode from the engine stateFilippos Karapetis
- Turned all SCIkwarn and SCIkdebug functions to ScummVM's debugC function - Placed some debug code in appropriate defines: DEBUG_PARSER, DEBUG_AVOIDPATH and DEBUG_SOUND - Removed the "debuglog" command and the "script_checkloads_flag" and "sci_debug_flags" variables svn-id: r41033
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-05-29SCI: Revised code for listing savegamesMax Horn
svn-id: r40999
2009-05-28SCI: Fix potential dangling pointer more robustly,Willem Jan Palenstijn
by changing the executionStack implementation to a list. svn-id: r40971
2009-05-27SCI: Cleanup.Walter van Niftrik
svn-id: r40931
2009-05-26Turned some static tables into static const tables; added some FIXME ↵Max Horn
comments to global static vars that should be removed (many more exist in SCI, Tinsel, and some other engines) svn-id: r40908
2009-05-20removed trailing whitespacesMax Horn
svn-id: r40742
2009-05-19SCI: Changed K_FILEIO_FILE_EXISTS to check regular files too.Walter van Niftrik
svn-id: r40724
2009-05-18SCI: Got rid of EngineState::execution_stack_pos; overally, the resulting ↵Max Horn
code should be even stricter in detecting invalid VM stack access (and some bugs when loading saves might be fixed now...) svn-id: r40694
2009-05-18Changed errors to be fatal, as most of them are fatal conditions. Some of ↵Filippos Karapetis
them have been changed to warnings for now, as they occur in certain games (e.g. SQ4 floppy, SQ4 CD and KQ5 CD) svn-id: r40675
2009-04-11SCI: Renamed bp_flag -> breakpointFlag; replaced global send_calls_allocated ↵Max Horn
& send_calls vars by a local Common::Stack instance svn-id: r39930
2009-03-12SCI: Moved savegame specific stuff from state.h to a new header savegame.hMax Horn
svn-id: r39351
2009-02-28Add support for saving Common::String objects.Willem Jan Palenstijn
Use it to simplify SavegameMetadata handling. svn-id: r38959
2009-02-27SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp ↵Max Horn
file with the EngineState constructor svn-id: r38921
2009-02-27SCI: Commited file handling revamp, work in progressMax Horn
svn-id: r38919
2009-02-26start out with an empty array of file handles, so the Enginestates matches ↵Andre Heider
between startup and restart. really check its size before accessing it (fixes LSL3 restart) svn-id: r38915
2009-02-24not needed anymorePaweł Kołodziejski
svn-id: r38856
2009-02-24SCI: Moved kernel.h and kdebug.h from include/ to engine/; untangled header ↵Max Horn
deps some more svn-id: r38833
2009-02-23SCI: cleanupMax Horn
svn-id: r38811
2009-02-23SCI: Moved file specific stuff from tools.h & tools.cpp to kfile.cppMax Horn
svn-id: r38810
2009-02-23SCI: Got rid of resource_dir & work_dir (temporarily disabled ↵Max Horn
f_open_mirrored for that) svn-id: r38807
2009-02-23SCI: Merged kDeviceInfo_Win32 & kDeviceInfo_Unix; added lots of debug calls ↵Max Horn
to the file I/O code, to make it possible to analyze usage patterns; some cleanup svn-id: r38806
2009-02-22SCI: Rewrite the way file handles are managedMax Horn
svn-id: r38794
2009-02-22SCI: Moved the code which iterates over the current dir into a small classMax Horn
svn-id: r38793
2009-02-22Whitespace cleanupJordi Vilalta Prat
svn-id: r38783
2009-02-22Fixed compilation under WindowsFilippos Karapetis
svn-id: r38770
2009-02-21SCI: More cleanupMax Horn
svn-id: r38758
2009-02-21Fix compilation by implicit including of sys/stat.hEugene Sandulenko
svn-id: r38736
2009-02-21Fixed compilation under MSVCFilippos Karapetis
svn-id: r38723
2009-02-21revert large parts of r38621. error() is for fatal errors and does not ↵Willem Jan Palenstijn
return. warning() is not for debugging status messages. svn-id: r38696
2009-02-21Remove excess \n.Travis Howell
svn-id: r38695
2009-02-21error() calls don't need \n, as it is already appended in error() itselfJoost Peters
svn-id: r38694
2009-02-21replace obsolete creat() with open()Andre Heider
svn-id: r38690
2009-02-21Replaced "typedef struct _state state_t" with "struct EngineState"Jordi Vilalta Prat
svn-id: r38678
2009-02-21Wrapped the SCI engine in the Sci namespace.Oystein Eftevaag
svn-id: r38676
2009-02-21SCI: Use GCC_PRINTF hint to the compiler for _SCIkprintf and sciprintf; ↵Max Horn
fixed tons of bad format strings svn-id: r38660
2009-02-20Converted SCI saving to use saveFileMan. Instead of a savegame beingWillem Jan Palenstijn
a directory with an id and a state file, a savegame now consists of two consecutive CFSML-serialized structs: SavegameMetadata and state_t. The former contains the savegame title, and is loaded when scanning saves. svn-id: r38649
2009-02-20Changed more messages to warnings/errorsFilippos Karapetis
svn-id: r38621
2009-02-20Started conversion of debug messages and debug levels to the ScummVM ↵Filippos Karapetis
equivalents. Removed the "stubs" and "warnings" debug levels and replaced such kinds of messages with normal warnings svn-id: r38617
2009-02-20SCI: Started rewriting file handling. Warning: This will likely introduceMax Horn
regressions, but we just have to start somewhere. - factored out some common code in engine/kfile.cpp into a separate func - replaced many uses of chdir, getcwd, sci_init_dir etc. by equivalent or better functionality from SearchMan etc. - replaced many uses of sci_open and sci_fopen by using Common::File and Common::Stream - C++ified some stuff - simplified ResourceSource a bit (loosing some unused functionality) svn-id: r38597
2009-02-19formatingPaweł Kołodziejski
svn-id: r38560
2009-02-17shat up ARRAYSIZE redefine compiler warningsPaweł Kołodziejski
svn-id: r38444
2009-02-17Update headers. engine/Eugene Sandulenko
svn-id: r38408
2009-02-17Replaced sci_free() with free() - it's OK to free a NULL pointer, so the ↵Filippos Karapetis
checking that sci_free() performed is not necessary svn-id: r38406
2009-02-16Replace strcasecmp with scumm_stricmp.Travis Howell
svn-id: r38356
2009-02-16SCI: cleanupMax Horn
svn-id: r38336
2009-02-15SCI: Run astyle to make the code be more compliant with our Code Formatting ↵Max Horn
Guidelines: engine dir svn-id: r38317
2009-02-15SCI: Changed _WIN32 -> WIN32; _DREAMCAST -> __DC__; removed _DOS stuffMax Horn
svn-id: r38305
2009-02-15cleanup, fixed warningsMax Horn
svn-id: r38282
2009-02-15SCI: Got rid of HAVE_FNMATCH_HMax Horn
svn-id: r38279