aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
AgeCommit message (Collapse)Author
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
2009-02-15Fixed some warnings.Johannes Schickel
svn-id: r38249
2009-02-15Fixed lots of warnings and errors (on my system) by backporting a patch I ↵Max Horn
had sent the FreeSCI folks some time ago (but apparently it never made it, or only made it to a branch not imported?) svn-id: r38245
2009-02-15- Remove some unneeded filesEugene Sandulenko
- Mass rename .c to .cpp svn-id: r38227