Willem Jan Palenstijn
fb8fafaf56
Fix reading corrupted saves.
...
svn-id: r38934
2009-02-27 19:50:22 +00:00
Willem Jan Palenstijn
fb552121d2
fix warnings and memleaks in savegame.cfsml
...
svn-id: r38933
2009-02-27 19:38:20 +00:00
Max Horn
479751104f
SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp file with the EngineState constructor
...
svn-id: r38921
2009-02-27 02:23:40 +00:00
Filippos Karapetis
6c879e96d1
- Removed engine/sys_strings.*
...
- Renamed sys_string_t -> SystemString, sys_strings_t -> SystemStrings
svn-id: r38916
2009-02-26 23:03:35 +00:00
Andre Heider
522063b28c
fix read_SegManagerPtr to not read from an uninitialzed pointer
...
svn-id: r38889
2009-02-25 23:50:16 +00:00
Andre Heider
9af7fba681
reintroduce game_start_time (removed it in r38701), since the interpreter can be restarted and it can be retrieved via script function (eg. LSL3 about box)
...
svn-id: r38888
2009-02-25 21:43:57 +00:00
Max Horn
e5a7b99cee
SCI: Don't #include headers in other headers if a forward declaration of a few types suffices (reduces header interdependencies)
...
svn-id: r38872
2009-02-24 23:16:42 +00:00
Paweł Kołodziejski
64ca675b51
not needed include anymore
...
svn-id: r38862
2009-02-24 22:01:10 +00:00
Max Horn
0be30cdc5d
SCI: Renamed gfx/gfx_operations.h to gfx/operations.h (matching the source file); moved include/sci_widgets.h to gfx/ (matching location of source file); renamed gfx/widgets.cpp to gfx/gfx_widgets.cpp (matching the header)
...
svn-id: r38852
2009-02-24 20:39:34 +00:00
Eugene Sandulenko
241340a07e
Fix compilation
...
svn-id: r38850
2009-02-24 20:11:10 +00:00
Max Horn
1e4db221e5
SCI: Moved engines/sci/include/sci_memory.h and engines/sci/scicore/sci_memory.cpp into engines/sci/; moved macros from the header into the source file
...
svn-id: r38832
2009-02-24 05:39:10 +00:00
Max Horn
35e3364675
SCI: Renamed int_hashmap to IntMapper, and added docs that explain that this is *not* a hashmap (at least not a plain hashmap)
...
svn-id: r38823
2009-02-24 02:59:50 +00:00
Max Horn
2413a5690e
SCI: Got rid of resource_dir & work_dir (temporarily disabled f_open_mirrored for that)
...
svn-id: r38807
2009-02-23 04:31:11 +00:00
Max Horn
9744fc615c
SCI: Changed selector name table to a Common::StringList
...
svn-id: r38805
2009-02-23 03:04:52 +00:00
Jordi Vilalta Prat
81c6da5658
SCI: Fix saving/loading (regression introduced in r38767)
...
svn-id: r38799
2009-02-23 00:14:51 +00:00
Willem Jan Palenstijn
a5a29a44e9
Check for end of file more often while reading CFSML
...
svn-id: r38796
2009-02-22 22:07:30 +00:00
Max Horn
4c1349e0f4
SCI: Fix what looks like a bug in the save/load system (?)
...
svn-id: r38795
2009-02-22 21:41:00 +00:00
Max Horn
1687a5e8d0
SCI: Rewrite the way file handles are managed
...
svn-id: r38794
2009-02-22 21:38:46 +00:00
Jordi Vilalta Prat
b5ce8d9320
Whitespace cleanup
...
svn-id: r38783
2009-02-22 13:11:43 +00:00
Jordi Vilalta Prat
817fde6cdd
SCI: Convert the segment manager into a class
...
svn-id: r38767
2009-02-21 23:27:24 +00:00
Max Horn
6f13850161
SCI: Moved include/menubar.h -> gfx/menubar.h, untangled headers some more
...
svn-id: r38761
2009-02-21 22:50:35 +00:00
Max Horn
ff17899d8e
SCI: Got rid of include/scitypes.h
...
svn-id: r38746
2009-02-21 21:16:41 +00:00
Max Horn
eb37789f6f
SCI: Renamed include/gfx_*.h to gfx/gfx_*.h and likewise for sfx header files
...
svn-id: r38735
2009-02-21 19:33:01 +00:00
Max Horn
9f2c0dcc6f
SCI: Tons of cleanup
...
svn-id: r38721
2009-02-21 18:39:53 +00:00
Andre Heider
e514d9780a
use OSystem::getMillis() for last_wait_time and get rid of game_start_time
...
svn-id: r38701
2009-02-21 15:40:14 +00:00
Jordi Vilalta Prat
d8d6aaa461
Replaced "typedef struct _seg_manager_t seg_manager_t" with "struct SegManager"
...
svn-id: r38679
2009-02-21 11:04:47 +00:00
Jordi Vilalta Prat
3cc6cdf719
Replaced "typedef struct _state state_t" with "struct EngineState"
...
svn-id: r38678
2009-02-21 10:47:56 +00:00
Oystein Eftevaag
25f7c37171
Wrapped the SCI engine in the Sci namespace.
...
svn-id: r38676
2009-02-21 10:23:36 +00:00
Max Horn
ecaab0fe94
SCI: Fixed warnings in engine/savegame.cpp, by improving cfsml.pl; also improved the build rule which is responsible for creating engine/savegame.cpp from engine/savegame.cfsml
...
svn-id: r38657
2009-02-21 03:59:57 +00:00
Willem Jan Palenstijn
7bc4b8667e
avoid vsscanf
...
svn-id: r38651
2009-02-21 00:18:02 +00:00
Willem Jan Palenstijn
abbca80d61
Converted SCI saving to use saveFileMan. Instead of a savegame being
...
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-20 23:41:15 +00:00
Paweł Kołodziejski
75b91c71dd
restored formating
...
svn-id: r38619
2009-02-20 20:31:08 +00:00
Willem Jan Palenstijn
7fdf8021d8
use new instead of malloc for int_hash_map_t
...
svn-id: r38613
2009-02-20 19:32:27 +00:00
Paweł Kołodziejski
08cd2c8806
formating
...
svn-id: r38612
2009-02-20 19:08:38 +00:00
Filippos Karapetis
7dfb902019
Updated the savegame.cfsml file to remove unused functions and generated the appropriate .cpp file using the cfsml tool
...
svn-id: r38493
2009-02-18 17:57:57 +00:00
Filippos Karapetis
1ccedde91a
Disabled unused functions
...
svn-id: r38465
2009-02-18 10:37:22 +00:00
Filippos Karapetis
53ef1bd4fd
Removed already implemented graphic capability flags, and used CLIP inside scummvm_draw_line() to clean up the code a bit
...
svn-id: r38451
2009-02-17 22:53:09 +00:00
Paweł Kołodziejski
4a241753c4
fixed compiler warning about potentialy uninitialized variable
...
svn-id: r38446
2009-02-17 20:43:37 +00:00
Eugene Sandulenko
22a009d3c6
Update headers. engine/
...
svn-id: r38408
2009-02-17 15:02:16 +00:00
Filippos Karapetis
a3adca29f2
Removed a lot of unused and compiler-specific debug code. Note that for MSVC, the corresponding checks are enabled by default in the debug build, so there's no need to set them again programmatically. Also, removed the "codebugging" related code
...
svn-id: r38387
2009-02-16 23:28:24 +00:00
Max Horn
a272626210
Replace strncasecmp by scumm_strnicmp
...
svn-id: r38362
2009-02-16 09:53:34 +00:00
Max Horn
ee92dbbe41
SCI: Committed stuff I forgot in my last commit; changed int_hash_map_t to a C++ class
...
svn-id: r38360
2009-02-16 09:40:25 +00:00
Travis Howell
2d0a897d16
Replace strcasecmp with scumm_stricmp.
...
svn-id: r38356
2009-02-16 09:17:49 +00:00
Max Horn
74132ed71a
SCI: cleanup
...
svn-id: r38336
2009-02-16 00:35:22 +00:00
Max Horn
57434d955f
SCI: Run astyle to make the code be more compliant with our Code Formatting Guidelines: engine dir
...
svn-id: r38317
2009-02-15 22:28:12 +00:00
Max Horn
e90eed4ff3
SCI: Changed _WIN32 -> WIN32; _DREAMCAST -> __DC__; removed _DOS stuff
...
svn-id: r38305
2009-02-15 21:27:42 +00:00
Willem Jan Palenstijn
8392dd3aab
consts
...
svn-id: r38272
2009-02-15 17:26:59 +00:00
Paweł Kołodziejski
9920d40924
fix compilation
...
svn-id: r38271
2009-02-15 17:20:31 +00:00
Eugene Sandulenko
e241843bec
- Remove some unneeded files
...
- Mass rename .c to .cpp
svn-id: r38227
2009-02-15 11:39:07 +00:00