Filippos Karapetis
88b44cef24
Fix heap corruption when assigning the save game directory
...
svn-id: r39343
2009-03-11 22:50:06 +00:00
Lars Skovlund
3cddcb1660
String fragments support
...
WIP: No regressions in this part, I hope
svn-id: r39297
2009-03-10 14:52:02 +00:00
Willem Jan Palenstijn
ced40b2266
Use new Palette class to manager pixmap palettes.
...
There are some remaining regressions with text colour in SCI1 games,
but overall it should fix more than it breaks.
svn-id: r39242
2009-03-08 20:17:01 +00:00
Max Horn
efa5493b2d
SCI: Changed suffix list to be stored as a Common::List; also fixed spelling: suffices -> suffixes
...
svn-id: r39214
2009-03-08 08:17:43 +00:00
Max Horn
2dfae035ac
SCI: Reduced header interdependencies some more
...
svn-id: r39202
2009-03-07 19:23:47 +00:00
Filippos Karapetis
1e29983d8e
Replaced getInt16, getUInt16 and putInt16
...
svn-id: r39189
2009-03-07 16:14:20 +00:00
Greg Frieger
cbb6f91967
SCI1: Improved color mapping when drawing line/box/text. Text with transparent background now displays correctly.
...
svn-id: r39089
2009-03-03 14:27:49 +00:00
Jordi Vilalta Prat
7050c7b03f
SCI: Use the ResourceType enum instead of integers where it makes sense
...
svn-id: r38988
2009-02-28 23:46:50 +00:00
Max Horn
d7b06b7d42
SCI: Renamed ResourceManager::sci_version to _sciVersion, to avoid var shadowing warnings; some other tweaks
...
svn-id: r38984
2009-02-28 22:19:22 +00:00
Greg Frieger
61ab59138a
resource_t struct replaced with stub Resource class for future objectifying. Also the crash when exiting SCI1 games was fixed
...
svn-id: r38982
2009-02-28 21:59:49 +00:00
Greg Frieger
4dd1b7dad5
Turned ResourceManager into a class, along with all related functions
...
svn-id: r38978
2009-02-28 20:45:36 +00:00
Andre Heider
b2cd5beb9e
clean up some warnings
...
svn-id: r38965
2009-02-28 13:41:43 +00:00
Jordi Vilalta Prat
501e4bb91a
SCI: Renamed some kernel types and general cleanup
...
svn-id: r38961
2009-02-28 11:12:59 +00:00
Max Horn
c053ef8c87
SCI: Remove empty include/ dir
...
svn-id: r38922
2009-02-27 02:24:29 +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
Max Horn
170916201c
SCI: Moved almost all files from include/ to other dirs; only include/engine.h remains
...
svn-id: r38920
2009-02-27 02:23:00 +00:00
Max Horn
bf0860fc5e
SCI: Commited file handling revamp, work in progress
...
svn-id: r38919
2009-02-27 01:17:24 +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
2d1fd81f90
start out with an empty array of file handles, so the Enginestates matches between startup and restart. really check its size before accessing it (fixes LSL3 restart)
...
svn-id: r38915
2009-02-26 21:17:53 +00:00
Andre Heider
84daa0410f
reinit sfx in game_init() when it got deinitialized in game_exit(), this unmutes the game after a restart.
...
shutdown sfx in game_exit() only if there is no EngineState successor (restored game) since gamestate_restore() already reinitialized it.
svn-id: r38912
2009-02-26 19:28:21 +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
Paweł Kołodziejski
e7b0c975d9
bring back comments but as TODO comment
...
svn-id: r38866
2009-02-24 22:40:54 +00:00
Paweł Kołodziejski
c2c02ceffd
remove code related __GNU__XX defines
...
svn-id: r38863
2009-02-24 22:24:58 +00:00
Max Horn
b5df97ad2b
SCI: Moved kernel.h and kdebug.h from include/ to engine/; untangled header deps some more
...
svn-id: r38833
2009-02-24 05:51:55 +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
Max Horn
327f5c9f77
SCI: Simplified code for selector lookup map generation a bit; got rid of an unused var
...
svn-id: r38804
2009-02-23 02:17:26 +00:00
Max Horn
1687a5e8d0
SCI: Rewrite the way file handles are managed
...
svn-id: r38794
2009-02-22 21:38:46 +00:00
Max Horn
4a6d6e8988
SCI: Moved the code which iterates over the current dir into a small class
...
svn-id: r38793
2009-02-22 20:48:42 +00:00
Max Horn
8997a45773
SCI: Replaced two uses of sci_fopen by Common::File; moved is_print_str() to the only spot it is used
...
svn-id: r38791
2009-02-22 19:45:53 +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
8430b662a9
SCI: Changed typedef struct -> struct
...
svn-id: r38752
2009-02-21 22:06:42 +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
Willem Jan Palenstijn
34f90ac043
revert large parts of r38621. error() is for fatal errors and does not return. warning() is not for debugging status messages.
...
svn-id: r38696
2009-02-21 14:11:41 +00:00
Travis Howell
7ce7993c30
Remove excess \n.
...
svn-id: r38695
2009-02-21 13:19:44 +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
Filippos Karapetis
2ddce51a56
Changed more messages to warnings/errors
...
svn-id: r38621
2009-02-20 20:39:02 +00:00
Paweł Kołodziejski
288445abb2
formating
...
svn-id: r38512
2009-02-18 22:46:01 +00:00
Paweł Kołodziejski
b500162ea9
formating
...
svn-id: r38511
2009-02-18 22:41:57 +00:00
Filippos Karapetis
e28439bebc
point_t -> Common::Point
...
svn-id: r38437
2009-02-17 19:15:37 +00:00
Eugene Sandulenko
22a009d3c6
Update headers. engine/
...
svn-id: r38408
2009-02-17 15:02:16 +00:00
Filippos Karapetis
d39d83e525
Replaced sci_free() with free() - it's OK to free a NULL pointer, so the checking that sci_free() performed is not necessary
...
svn-id: r38406
2009-02-17 13:51:52 +00:00
Paweł Kołodziejski
2a7d22702c
initialize palette buffers (compiler warning)
...
svn-id: r38351
2009-02-16 07:17:36 +00:00
Jordi Vilalta Prat
75a4540791
Revert r38254 as pointed by waltervn (SCI1 games work again)
...
svn-id: r38349
2009-02-16 07:02:11 +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
4eff1002f9
SCI: Got rid of a nasty hack where class, delete, new were re#defined because FreeSCI used these C++ keywords for variable names
...
svn-id: r38312
2009-02-15 22:01:09 +00:00