Max Horn
75c0d719c9
SCI: Turned several script related SegManager methods into Script methods
...
svn-id: r40597
2009-05-15 09:27:07 +00:00
Filippos Karapetis
565cfa074d
Simplified SCI versions to be SCI version generations, and fixed some game entries in the process. Also, added a sanity check for invalid game entries
...
svn-id: r40596
2009-05-15 09:04:21 +00:00
Filippos Karapetis
999d46b241
Started using game-specific flags and removed/replaced some SCI version checks with flags.
...
- The SCI0 new script header and the angles check have been replaced by the GF_SCI0_OLD flag
- The SCI0 new drawpic parameter and the new priority check have been replaced by the GF_SCI0_OLDGFXFUNCS flag
- Removed the code which retries to use the newer script header in SCI0 games if the detected one is wrong, as that case should be covered by the GF_SCI0_OLD flag
- Removed the leftover min_version and max_version variables from gamestate
- Cleaned up kGetTime() a bit
svn-id: r40552
2009-05-14 09:12:27 +00:00
Filippos Karapetis
41af51d645
Simplified and re-enabled the debug code that shows pixmaps on screen and moved sciprintf() to tools.cpp
...
svn-id: r40542
2009-05-13 21:22:53 +00:00
Max Horn
7f29670843
SCI: Changed object / script local vars storage to use a Common::Array
...
svn-id: r40515
2009-05-12 23:30:42 +00:00
Max Horn
0255cd0213
SCI: Removed sci_memory.h/.cpp
...
svn-id: r40514
2009-05-12 23:30:10 +00:00
Filippos Karapetis
a5a1aa5542
- Slight cleanup of c_sfx_01_header()
...
- "words" -> "kernelwords"
svn-id: r40474
2009-05-12 08:22:20 +00:00
Filippos Karapetis
80254b79cc
Replaced sci_hexdump() with Common::hexdump()
...
svn-id: r40472
2009-05-12 07:21:44 +00:00
Max Horn
5481806635
SCI: Hook FreeSCI console commands into the ScummVM console (incomplete as of now, because printf output is not yet redirect to the GUI console)
...
svn-id: r40459
2009-05-11 18:02:48 +00:00
Max Horn
1949133d22
SCI: Simplified the Table class, by making it use an Common::Array internally. Increased savegame version, breaking compatibility to the previous one -- sorry for that, but some of my previous changes accidentally messed up the table syncing, resulting in messed up savegames anyway; these breakages should be fixed with this commit
...
svn-id: r40453
2009-05-11 13:32:00 +00:00
Max Horn
d66d1ffab3
SCI: Replace global vars cmd_paramlength & cmd_params by Common::Array<cmd_param_t> param to console hook commands
...
svn-id: r40452
2009-05-11 13:31:37 +00:00
Max Horn
019f87fd1b
SCI: Changed object list in Script instances to use Common:::Array
...
svn-id: r40431
2009-05-10 19:17:51 +00:00
Max Horn
0223b7e490
SCI: Moved findCanonicAddress from SegInterface to MemObject
...
svn-id: r40376
2009-05-08 09:54:06 +00:00
Max Horn
b49dd22173
SCI: Renamed dstack_t -> DataStack; removed obsolete KF_OLD constant
...
svn-id: r40374
2009-05-08 09:53:31 +00:00
Max Horn
d8738b9090
SCI: Started to merge SegInterface into MemObject
...
svn-id: r40373
2009-05-08 09:53:10 +00:00
Max Horn
a41069d69b
SCI: Started adding methods to MemObject subclasses: constructors, destructors, dereference() (and currently commented out refs to Common::Serializable
...
svn-id: r40295
2009-05-03 22:47:04 +00:00
Max Horn
d960c1e2a5
SCI: Completed transition from MemObject (a union of various structs) to MemObjectNEW (a baseclass for these structs)
...
svn-id: r40294
2009-05-03 22:46:38 +00:00
Max Horn
82f2672008
SCI: Changed SegManager to store the heap pointers in a Common::Arrray
...
svn-id: r40293
2009-05-03 22:46:11 +00:00
Max Horn
f108a31ad7
SCI: Made SegManager::heap_size unsigned
...
svn-id: r40290
2009-05-03 22:45:13 +00:00
Max Horn
50c8821072
SCI: Renamed MemObject::type and ::segmgr_id to _type resp. _segmgrId, and added accessor methods getType() and getSegMgrId()
...
svn-id: r40271
2009-05-03 09:30:33 +00:00
Max Horn
ed914d6740
SCI: Improved the Table template a bit by taking advantage of C++ features
...
svn-id: r40190
2009-04-28 22:56:44 +00:00
Max Horn
294bd0dc07
SCI: Renamed execution_stack -> _executionStack and turned it into a Common::Array
...
svn-id: r40182
2009-04-28 15:58:19 +00:00
Max Horn
b5e9d79e15
SCI: Turned classtable into a Common::Array<Class>
...
svn-id: r40161
2009-04-27 12:31:27 +00:00
Max Horn
6f60e0dd48
SCI: Turned GfxWidget::draw function pointer into virtual method
...
svn-id: r40115
2009-04-24 14:22:14 +00:00
Max Horn
dadae13545
SCI: Turned GfxWidget::print function pointer into virtual method
...
svn-id: r40113
2009-04-24 14:20:31 +00:00
Max Horn
ebcfd9b016
SCI: Got rid of GFXW() macro; turned GfxWidget::widfree into destructors
...
svn-id: r40107
2009-04-24 10:48:25 +00:00
Max Horn
9445439c4f
SCI: Renamed gfxw_widget_t and subtypes to GfxWidget etc.
...
svn-id: r40104
2009-04-24 10:46:20 +00:00
Max Horn
86b3657476
SCI: Started to C++ify the gfxw_widget_t codebase
...
svn-id: r40103
2009-04-24 10:45:09 +00:00
Max Horn
486f10edaf
SCI: Store parse_tree_branch_t in a Common::Arraay
...
svn-id: r40100
2009-04-24 10:42:53 +00:00
Max Horn
3af8918e1a
SCI: Changed kfunct_table to a Common::Array
...
svn-id: r40080
2009-04-22 17:54:11 +00:00
Max Horn
b1e43f3ca0
SCI: Changed knames (kernel function name table) to Common::StringList
...
svn-id: r40078
2009-04-22 17:53:29 +00:00
Max Horn
5325f9b76e
SCI: Renamed global array 'formats' to the slightly more descriptive g_opcode_formats
...
svn-id: r40031
2009-04-20 19:28:33 +00:00
Filippos Karapetis
c92210296e
Some more FreeSCI <-> SCI changes
...
svn-id: r39808
2009-04-03 08:23:02 +00:00
Filippos Karapetis
c4e054848e
Changed some references from "FreeSCI" to "SCI" or "ScummVM"
...
svn-id: r39807
2009-04-03 08:10:58 +00:00
Filippos Karapetis
34d75e455b
- Renamed gfx/sci_widgets.* to gfx/gfx_gui.*, as these files contain GUI elements mostly, like windows and status bars
...
- Moved kWindowAutoRestore from gfx_widgets.h to gfx_gui.h
svn-id: r39687
2009-03-25 12:52:03 +00:00
Max Horn
1e94b9cd3c
SCI: Rewrote vocabulary code to use a Common::HashMap<String,ResultWord>
...
svn-id: r39671
2009-03-24 17:42:12 +00:00
Max Horn
65b96f6a1b
SCI: Changed vocab_tokenize_string to not 'return' the list it generates, but rather pass a reference to an existing list to it (this is a bit more efficient, and allows us to return an error value)
...
svn-id: r39670
2009-03-24 17:41:46 +00:00
Max Horn
d38590e6d4
SCI: Turned synonyms list into a Common::List
...
svn-id: r39669
2009-03-24 17:41:26 +00:00
Max Horn
b76f7fea4e
SCI: Changed some char* into Common::String
...
svn-id: r39663
2009-03-24 12:46:48 +00:00
Filippos Karapetis
e3f9acc3e6
Further objectification of the graphics resource manager
...
svn-id: r39621
2009-03-22 23:11:43 +00:00
Filippos Karapetis
723bc879f8
Changed abs_rect_t to Common::Rect
...
svn-id: r39518
2009-03-18 16:43:12 +00:00
Filippos Karapetis
e546c60948
Further objectification of the graphics resource manager
...
svn-id: r39499
2009-03-17 23:30:57 +00:00
Filippos Karapetis
063ce3938d
Started objectifying the graphics resource manager (refer to patch #2689887 )
...
svn-id: r39492
2009-03-17 21:08:33 +00:00
Max Horn
7df4e2a80f
SCI: Indention changes, changed 'songlib_t' params to 'const songlib_t &'
...
svn-id: r39429
2009-03-15 20:31:15 +00:00
Max Horn
642bad22d8
SCI: Removed most uses of the 'inline' keyword. It is usually better to let the compiler figure out what to inline. As it is, most of these looked as if they were randomly placed ;)
...
svn-id: r39352
2009-03-12 03:26:47 +00:00
Max Horn
40b313c28e
SCI: Moved savegame specific stuff from state.h to a new header savegame.h
...
svn-id: r39351
2009-03-12 03:26:21 +00:00
Filippos Karapetis
d8824d631a
Fixed warnings
...
svn-id: r39298
2009-03-10 16:24:40 +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
Max Horn
6c93249715
SCI: result_word_t -> ResultWord; switched to Common::List for storing lists of ResultWords
...
svn-id: r39278
2009-03-09 22:25:33 +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