Filippos Karapetis
60f5ac3300
Replaced GFXWARN with warning and GFXDEBUG with debugC
...
svn-id: r41367
2009-06-08 11:42:13 +00:00
Filippos Karapetis
3b687a7a04
Replaced KP_ALT, SKPV_OR_ALT and UKPV_OR_ALT
...
svn-id: r41340
2009-06-07 16:50:34 +00:00
Filippos Karapetis
744323ca33
Replaced/removed KP_UINT, KP_SINT, SKPV and UKPV as well as the VIEW_PRIORITY and PRIORITY_BAND_FIRST wrappers
...
svn-id: r41338
2009-06-07 15:53:30 +00:00
Filippos Karapetis
e572811aed
Moved some more debug commands to ScummVM's coneole
...
svn-id: r41227
2009-06-06 16:43:13 +00:00
Willem Jan Palenstijn
60e02ad6a8
Store long-term pointers to object variables in a new ObjVarRef struct.
...
Storing them as reg_t* could cause the pointers to become invalid
when they pointed into CloneTable since CloneTable can be re-allocated.
svn-id: r41220
2009-06-06 11:38:20 +00:00
Filippos Karapetis
8033a39128
Objectified the graphics driver
...
svn-id: r41214
2009-06-06 10:21:48 +00:00
Filippos Karapetis
da36901b07
Cleanup
...
svn-id: r41202
2009-06-05 23:08:35 +00:00
Max Horn
10c54394bd
SCI: Renamed EngineState::flags and version to _flags and _version (following our conventions); also slightly changed the EngineState constructor to init _version & _flags, and used this to make them constant
...
svn-id: r41177
2009-06-04 21:44:39 +00:00
Max Horn
f08f5c3bbf
SCI: Slightly modified kAddAfter so that it does not modify its arguments needlessly
...
svn-id: r41174
2009-06-04 20:51:24 +00:00
Max Horn
382ebea3fa
SCI: Renamed various debug related global variables to have a g_ prefix; and moved any 'extern' decls of them into a new header file
...
svn-id: r41163
2009-06-04 11:28:05 +00:00
Filippos Karapetis
780926991e
Moved some more console commands to ScummVM's debug console
...
svn-id: r41126
2009-06-02 19:03:43 +00:00
Filippos Karapetis
98f64cfa2f
Removed the gfxw_new_visual and gfxw_new_port wrappers, moved _kfuncTable inside the Kernel class and moved gfxw_find_port inside the GfxVisual struct
...
svn-id: r41125
2009-06-02 14:16:59 +00:00
Filippos Karapetis
d405b2880b
Removed some unused variables from the engine state
...
svn-id: r41123
2009-06-02 07:59:04 +00:00
Filippos Karapetis
99c6874630
Split the kernel functions away from the vocabulary functions (WIP, saving/loading is broken)
...
svn-id: r41101
2009-06-01 14:12:43 +00:00
Filippos Karapetis
c730e0290d
Replaced kernel_oops with error(), and added an enum to clarify the cases where invoke_selector should stop
...
svn-id: r41095
2009-06-01 08:00:58 +00:00
Torbjörn Andersson
0999534749
The error() and warning() functions add ! and newline automatically. (I didn't
...
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
2009-05-31 10:02:16 +00:00
Filippos Karapetis
a4d13cef8c
More objectification of the Vocabulary functions
...
svn-id: r41057
2009-05-31 02:37:24 +00:00
Johannes Schickel
abe8cf0625
Typo.
...
svn-id: r41054
2009-05-31 01:11:06 +00:00
Max Horn
70a04c8b51
SCI: Made vocab_version static again (a global static var is bad, but a really global var is worse); also clarified some FIXME comments that we want to avoid *any* non-const global var, no matter whether it is static or not
...
svn-id: r41045
2009-05-30 20:37:33 +00:00
Willem Jan Palenstijn
598feb771f
SCI: Fix broken pointer after array re-allocation.
...
svn-id: r41042
2009-05-30 19:59:53 +00:00
Johannes Schickel
2f90c8f398
- Fix various debugC calls (parameters passed were not correct)
...
- Fix unused variable warning in scriptdebug.cpp
svn-id: r41038
2009-05-30 17:30:54 +00:00
Filippos Karapetis
3490819a66
- Removed debug_mode from the engine state
...
- 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-30 15:40:49 +00:00
Filippos Karapetis
69582f0179
Moved 3 more debug commands to console.cpp ("simkey", "segment_table" and "show_map") and removed the GFXWC macro. Some cleanup
...
svn-id: r41032
2009-05-30 14:30:39 +00:00
Filippos Karapetis
c7c9f05cac
Removed/replaced BREAKPOINT
...
svn-id: r41025
2009-05-30 10:42:08 +00:00
Filippos Karapetis
b1997801da
- Moved some debug code into console.cpp, adding 3 console commands: resource_types, sci0_palette and exit
...
- Removed the "man" command
- Removed the commands which set the SCI01 priority table flags and the crossblit alpha threshold (they're too specific, and not really useful anymore)
- Removed some leftover debug code from gfxop_clear_box()
svn-id: r41010
2009-05-29 17:19:39 +00:00
Filippos Karapetis
cf5e7e17df
Fixed hopefully the last regression in kSetCursor. KQ5CD should work correctly again
...
svn-id: r40980
2009-05-29 10:14:58 +00:00
Filippos Karapetis
b242d05563
- Fixed usage of kSetCursor in SCI1.1 games (e.g. when starting KQ6 floppy)
...
- Removed a static variable (vocab_version)
- vocab.996 is now freed after creating the class table in SCI1 games, like in SCI0 games
svn-id: r40979
2009-05-29 09:42:11 +00:00
Filippos Karapetis
e9444e2b93
- Rewrote kSetCursor to be a bit simpler to understand, and got rid of GF_SCI1_NEWSETCURSOR
...
- Removed the 3 mouse pointer view, loop and cell variables (and their 3 "save" versions) from the game state, as they're all actually not used anywhere
- Cleanup
svn-id: r40976
2009-05-29 08:25:42 +00:00
Filippos Karapetis
4717533dea
Added a fix to get QFG3 working and changed an error to a warning to get EcoQuest 2 working
...
svn-id: r40944
2009-05-27 17:13:42 +00:00
Filippos Karapetis
c6ba88c00a
Fixed regression in Longbow
...
svn-id: r40924
2009-05-26 19:16:24 +00:00
Max Horn
7d5f3e1714
Turned some static tables into static const tables; added some FIXME comments to global static vars that should be removed (many more exist in SCI, Tinsel, and some other engines)
...
svn-id: r40908
2009-05-26 11:30:21 +00:00
Walter van Niftrik
de5ca1e472
SCI: Some small fixes for KQ6CD.
...
svn-id: r40898
2009-05-26 00:03:41 +00:00
Filippos Karapetis
5f7847d88d
Re-enabled the code for correct text positioning - it should work correctly now
...
svn-id: r40891
2009-05-25 16:30:39 +00:00
Filippos Karapetis
71cc92ab7f
Fixed a nasty bug in the GUI code, which caused the windows in PQ3 and SCI1.1 games to be erased incorrectly
...
svn-id: r40889
2009-05-25 13:25:31 +00:00
Walter van Niftrik
5e68c1f4a0
SCI: Force movie palettes (KQ6).
...
svn-id: r40883
2009-05-25 11:14:42 +00:00
Filippos Karapetis
39f9894ee5
Added a stub for SetVideoMode(), and fixed some of the palette glitches in the intro of KQ6 thanks to some comments by waltervn. Also, commented out the bounds rect in gfxr_pic_t, as it's currently unused
...
svn-id: r40808
2009-05-23 13:26:45 +00:00
Filippos Karapetis
91d2fa2d0d
Fixed clipping code for texts which do not fit on screen, and added a warning when this happens
...
svn-id: r40807
2009-05-23 12:08:36 +00:00
Filippos Karapetis
f77dfe9d23
Fixed the incorrect placement of the copyright message in KQ6 on screen
...
svn-id: r40806
2009-05-23 11:56:27 +00:00
Filippos Karapetis
b4126beea2
The third and fourth parameter in changePortBounds() are x2 and y2, not width and height
...
svn-id: r40805
2009-05-23 10:50:24 +00:00
Filippos Karapetis
3811df7aca
Fixed the incorrectly placed views in the KQ6 intro, by reintroducing port bounds in the graphics resource manager and removing two relevant hacks
...
svn-id: r40803
2009-05-23 10:07:01 +00:00
Walter van Niftrik
36fe37443d
SCI: Added support for KQ6 movies.
...
svn-id: r40774
2009-05-21 22:03:23 +00:00
Max Horn
b431254070
SCI: Removed the 'save_dir' gui hack
...
svn-id: r40772
2009-05-21 21:50:11 +00:00
Filippos Karapetis
4799cbf1c3
Removed the PREG, PSTK, IS_NULL_REG and REG_EQ defines
...
svn-id: r40767
2009-05-21 17:18:46 +00:00
Max Horn
bba91075bf
removed trailing whitespaces
...
svn-id: r40742
2009-05-20 17:53:31 +00:00
Max Horn
f594562745
SCI: Added a FIXME to graph_save_box
...
svn-id: r40684
2009-05-18 12:34:25 +00:00
Johannes Schickel
dd12c0d06a
Oops didn't mean to remove new line from this format string.
...
svn-id: r40682
2009-05-18 11:57:02 +00:00
Johannes Schickel
220fe60424
Fix some error/warning calls. (might need some review, from someone familiar with SCI)
...
svn-id: r40680
2009-05-18 11:53:04 +00:00
Filippos Karapetis
ecd893ca48
Fixed incorrect order of parameters in the workaround debug message shown for LSL6
...
svn-id: r40678
2009-05-18 09:59:54 +00:00
Filippos Karapetis
76ad23ddbd
Added a workaround for LSL6, thanks to waltervn's comments
...
svn-id: r40677
2009-05-18 09:07:31 +00:00
Filippos Karapetis
1e547f320c
Removed the unused file and line parameters from the list and list node lookup functions, and removed the LOOKUP_LIST and LOOKUP_NODE defines. Also, disabled the unused LOOKUP_SPECIES define
...
svn-id: r40676
2009-05-18 08:28:04 +00:00