Filippos Karapetis
56c0a41b71
SCI: Moved the rest of the console code out of sciconsole.cpp and into console.cpp. "list" and "hexgrep" have been added to the console commands. parse_reg_t() has been moved to kmovement.cpp (as it's the only code using it). Note that the debug commands in scriptdebug.cpp have not been converted yet, so they don't work at the moment
...
svn-id: r41024
2009-05-30 10:22:53 +00:00
Filippos Karapetis
b43094cec0
- Added brief Doxygen comments to the ResourceSync and AudioResource classes to explain what they do
...
- Removed the outdated info page on "codebugging"
- Moved the "addresses" info page as a comment above parse_reg_t()
- Removed con_hook_page()
svn-id: r41013
2009-05-29 17:39:55 +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
Johannes Schickel
f4b15bb87f
Fix warning about unused variable.
...
svn-id: r41005
2009-05-29 14:56:53 +00:00
Max Horn
fb79b18571
Changed SaveFileManager methods to take Common::String params (instead of char pointers)
...
svn-id: r41000
2009-05-29 14:38:22 +00:00
Max Horn
518e005ec2
SCI: Revised code for listing savegames
...
svn-id: r40999
2009-05-29 14:36:56 +00:00
Filippos Karapetis
74e87bf05d
Some WIP code on the speech used in KQ6CD
...
svn-id: r40996
2009-05-29 13:52:10 +00:00
Max Horn
813853ccc2
SCI: Converted several fprintf(stderr) calls to warning/error (the remaining fprintf calls should probably be replaced by suitable debug/debugC/debugN invocations)
...
svn-id: r40993
2009-05-29 13:07:14 +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
c95e5fceee
Moved the "size" console debugger command to console.cpp and silenced a warning
...
svn-id: r40978
2009-05-29 08:59:13 +00:00
Filippos Karapetis
0ad3b7bb7d
Cleanup
...
svn-id: r40977
2009-05-29 08:46:20 +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
Max Horn
d3bd7b622c
SCI: Turned SfxState into a proper class (i.e., convert the sfx_ funcs to member methods)
...
svn-id: r40973
2009-05-28 22:48:15 +00:00
Willem Jan Palenstijn
67fa1fb59c
SCI: Fix potential dangling pointer more robustly,
...
by changing the executionStack implementation to a list.
svn-id: r40971
2009-05-28 22:42:18 +00:00
Max Horn
99b520dd09
SCI: Merged SfxPlayer/NewPlayer code into sfx/core.cpp
...
svn-id: r40965
2009-05-28 22:02:45 +00:00
Willem Jan Palenstijn
7d5bbd7f71
SCI: Fix potential dangling pointer after reallocation
...
svn-id: r40963
2009-05-28 19:18:29 +00:00
Max Horn
32975b25f4
SCI: cleanup
...
svn-id: r40959
2009-05-28 11:15:09 +00:00
Max Horn
d70504c910
SCI: Renamed sfx_state_t -> SfxState, preparing it to become a class eventually
...
svn-id: r40958
2009-05-28 10:54:30 +00:00
Walter van Niftrik
1dde062e2a
SCI: Fix crash in seginfo debug command.
...
svn-id: r40951
2009-05-27 21:25:45 +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
c75bdbc8e9
- SQ5 floppy starts now
...
- Added a new console command, "room", which shows the current room
svn-id: r40943
2009-05-27 16:45:42 +00:00
Filippos Karapetis
e0a0593949
Fixed a typo, and added parentheses to clarify order
...
svn-id: r40938
2009-05-27 12:46:11 +00:00
Filippos Karapetis
4dccd309e2
- Renamed the Audio commands to kSci*, from kSci1* (since they're pretty much the same for SCI1.1)
...
- Added enums for the audio sync cases
- Added a warning when kDoSync is called with the new semantics (SQ4CD or newer)
svn-id: r40936
2009-05-27 09:07:08 +00:00
Filippos Karapetis
16078599fb
Added a warning when kDoAudio is called with the new semantics (SQ4CD or newer) and fixed the detection entry for SQ4CD
...
svn-id: r40935
2009-05-27 08:48:57 +00:00
Walter van Niftrik
e3178daf13
SCI: Cleanup.
...
svn-id: r40931
2009-05-27 00:24:32 +00:00
Walter van Niftrik
fd191a4920
SCI: Changed signatures of StrLen and StrCpy to allow NULL pointers. This is
...
needed for a game bug in KQ6CD.
svn-id: r40930
2009-05-26 23:34:57 +00:00
Filippos Karapetis
c6ba88c00a
Fixed regression in Longbow
...
svn-id: r40924
2009-05-26 19:16:24 +00:00
Max Horn
099a29b6bf
SCI: Added 'opcodes' command to the debugger; fixed output wrapping in the selectors & kernelnames debugger commands
...
svn-id: r40919
2009-05-26 15:06:21 +00:00
Max Horn
c96cf97ea7
SCI: Merged vocab_debug.cpp into vocabulary.cpp; cleanup
...
svn-id: r40915
2009-05-26 14:44:14 +00:00
Max Horn
7fbbaff990
SCI: Turned the global 'static MessageState state' variable into a member of EngineState
...
svn-id: r40910
2009-05-26 11:33:18 +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
Johannes Schickel
4d66b55316
Fix g++ warning.
...
svn-id: r40905
2009-05-26 10:10:45 +00:00
Filippos Karapetis
780899fb0e
Rewrote the Audio stream parser. The introduction of KQ6 should work more correctly now (apart from Cassima's speech)
...
svn-id: r40904
2009-05-26 10:02:25 +00:00
Walter van Niftrik
de5ca1e472
SCI: Some small fixes for KQ6CD.
...
svn-id: r40898
2009-05-26 00:03:41 +00:00
Johannes Schickel
b9bdded269
Remove leftover debug messages.
...
svn-id: r40896
2009-05-25 20:55:49 +00:00
Filippos Karapetis
16d6499617
WIP code for the speech in the floppy version of KQ6 (still needs work)
...
svn-id: r40894
2009-05-25 19:57:09 +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
Filippos Karapetis
4470dada57
Fixed crash when starting KQ6
...
svn-id: r40885
2009-05-25 11:44:24 +00:00
Walter van Niftrik
5e68c1f4a0
SCI: Force movie palettes (KQ6).
...
svn-id: r40883
2009-05-25 11:14:42 +00:00
Filippos Karapetis
d59796fb54
Objectified the AudioResource code (used for speech and digitized music in CD talkie games)
...
svn-id: r40880
2009-05-25 10:30:19 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
8ab0f0256e
Fixed audio synchronization in the CD version of KQ5
...
svn-id: r40855
2009-05-24 09:40:48 +00:00
Filippos Karapetis
8dd601d35e
Moved the "dump" and "dissectscript" commands to console.cpp and renamed them to "hexdump" and "dissect_script" respectively
...
svn-id: r40818
2009-05-23 19:59:42 +00:00
Filippos Karapetis
fc0fab937a
Oops, fixed silly typo
...
svn-id: r40816
2009-05-23 18:57:47 +00:00
Filippos Karapetis
6a7aae788d
Some more WIP code for kDoAudio(), taken from Greg's SCI engine. Sound and speech in KQ5CD should be working now
...
svn-id: r40815
2009-05-23 18:55:56 +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