Commit Graph
371 Commits
Author SHA1 Message Date
Filippos Karapetis 381e92a576 SCI: Added handling of invalid jump offsets (e.g. QFG2, script 260) 2011-11-28 22:36:58 +02:00
Filippos Karapetis 58190c36b4 SCI: Made the object map hashmap of the Script class private 2011-11-05 10:07:03 +02:00
Filippos Karapetis 267c6f1756 SCI: Made more fields of the Script class private. Some cleanup. 2011-11-05 03:00:42 +02:00
Filippos Karapetis fa43ded590 SCI: The draw_pic console command now works in SCI32
Moreover, the overlay is temporarily hidden to show the picture
2011-10-19 02:02:04 +03:00
Max Horn 88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
md5 c5610182a6 SCI: Some fixes for the find_callk command 2011-06-12 15:36:08 +03:00
md5 7ab6dfc00e SCI: Fixed the show_saved_bits console command
This is achieved by hiding the graphical debugger overlay temporarily in
order to show the command's results
2011-06-12 15:07:42 +03:00
Willem Jan Palenstijn 50176e7c5f SCI: Add saved_bits/show_saved_bits console commands 2011-06-12 01:55:30 +02:00
Willem Jan Palenstijn 59dd072f63 SCI: Make 'quit' an alias for 'quit game' in the console 2011-05-29 16:01:56 +02:00
Lars Skovlund cb990e68a1 SCI: Fix access to variables (gc_interval etc.) from the console 2011-05-27 17:34:43 +02:00
Max Horn 6c5f50c246 COMMON: Add exit() to list of forbidden symbols 2011-05-23 19:39:26 +02:00
Willem Jan Palenstijn 5fc5265b0d SCI: Fix crash in vo with unloaded superclass 2011-05-13 23:23:15 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn 76cf7bc907 SCI: Slight cleanup to undithering code 2011-05-09 14:41:49 +02:00
md5 ce704575a9 SCI: Updated the view type descriptions in the "version" console command 2011-04-26 12:56:09 +03:00
md5 4133945850 SCI: Renamed restAdjust to r_rest (like r_acc and r_prev) 2011-03-28 02:23:58 +03:00
md5 d86504ef88 SCI: Cleaned up the BreakpointType enum and documented the bpe command 2011-03-25 13:37:00 +02:00
md5 4df049f4d7 SCI: Added a new console command "window_list" or "wl"
This can be used to see a list of the currently open windows. Also, added
a sanity check for the "al" command and performed some minor cleanup
2011-03-20 14:56:13 +02:00
md5 1e68000def SCI: Added a new console command, "animate_list" or "al"
This shows the current animation list, along with object properties,
positions and the scripts they belong to
2011-03-20 04:10:29 +02:00
md5 156f1c0178 SCI: Added another leftover debug script in the find_callk console command 2011-03-19 01:57:39 +02:00
md5 4c5950dff2 SCI: Fixed find_callk
Create a custom segment manager within find_callk, so that the game's
segment manager won't be affected by loading and unloading scripts in there
2011-03-14 21:33:07 +02:00
md5 75319afbfd SCI: Ignore some more leftovers scripts in the find_callk console command 2011-03-14 19:59:30 +02:00
Willem Jan Palenstijn 8918d5e66c SCI: Fix warning 2011-03-13 00:27:28 +01:00
Willem Jan Palenstijn 6fe95780d3 SCI: Continue disasm until no jumps go past the current opcode
This should ensure disasm will disassemble an entire function, and
not stop at an intermediate ret opcode.
2011-03-12 23:46:32 +01:00
md5 5dce3235e9 SCI: Some changes to the "dissassemble" command
Fixed a bug (the "bwt" and "bc" options were inversed) and added the
ability to skip a defined number of ret calls, useful when a function
continues after a ret call
2011-03-12 23:45:36 +02:00
Willem Jan Palenstijn eece58df7f SCI: Remove unused argument to said 2011-03-08 22:50:32 +01:00
Max Horn 2cbefc8bb5 SCI: Constify some code 2011-03-07 23:21:35 +01:00
Walter van Niftrik 39902452a2 SCI: Fix reg_t ASCII printing in debugger for BE. 2011-03-04 21:12:00 +01:00
md5 9bd5e8ff15 SCI: Cleanup 2011-02-26 19:10:12 +02:00
md5 fe04339909 SCI: Removed the SCI32 version of kernelDrawCel() and placed its code inside the debug function cmdDrawCel, as it was hacked together to be used specifically in that command (thanks to salty-horse for spotting this) 2011-02-26 19:07:31 +02:00
Matthew Hoops 2c9d30e737 SCI: Don't limit the number of resources to 999 in hexgrep 2011-02-12 18:33:52 -05:00
Matthew Hoops 15b3bffb7f SCI: Fix the console's hexgrep command 2011-02-12 18:30:26 -05:00
Filippos Karapetis 6f9ac84f77 SCI: Converted the robot decoder into a regular video decoder, and decoupled it from the
SciEngine class

- Robot videos are now shown in frameOut(), like they should, and kRobot(sync) is only
used for syncing with the game scripts
- Hooked video playing into the "play_video" console command

svn-id: r55801
2011-02-07 12:24:09 +00:00
Filippos Karapetis 512bcf8b90 SCI: Rewrote the robot playing code in a way similar to other video decoders
- The code now streams videos instead of loading them in memory, without utilizing seeking
- Removed the sound-related robot code from the graphics classes
- Started implementing the code for the sound in robot videos (still not finished)

svn-id: r55772
2011-02-04 17:51:59 +00:00
Eugene Sandulenko caa6684752 VIDEO: Move video classes to Video:: namespace
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko 806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00
Lars Skovlund dc27a22026 SCI: Added stub for playing robot audio from the console
svn-id: r55424
2011-01-22 13:12:01 +00:00
Filippos Karapetis c8b3200dd3 SCI: Extended the bpk debug command so that it can also disable a breakpoint on a kernel function
svn-id: r55249
2011-01-15 11:54:20 +00:00
Filippos Karapetis 2b87eebdb0 SCI: Moved the handling of the op_line debug opcode inside readPMachineInstruction()
The handling has been moved inside readPMachineInstruction(), instead of run_vm(), as a
lot of parts of the code depend on this function handling all opcodes correctly (e.g. the
script dissassembler, the features class, find_callk etc)

svn-id: r55154
2011-01-07 20:24:49 +00:00
Filippos Karapetis 6b250f8c9b SCI2/2.1: Improvements to the find_callk debug function, and some kernel function updates
- Improved the find_callk function to properly find the end of script objects, by
monitoring jump calls
- Added three extra special calls to find_callk: find kernel function calls to dummy,
unused and unmapped kernel functions
- Updated several kernel function calls because of the above functionality
- The above functionality has also uncovered a VM bug in some SCI2/2.1 opcode - added 
a FIXME for it

svn-id: r55151
2011-01-07 18:25:38 +00:00
Filippos Karapetis a6994413ea SCI2.1: Show the kernel table used in the "version" console command
Transitive SCI2.1 games (e.g. QFG4CD and PQ4CD, as well as GK2 demo) used a SCI2 table,
with some added functions. If a SCI2.1 game is loaded, show what kernel table it uses

svn-id: r55136
2011-01-07 00:05:14 +00:00
Filippos Karapetis 430dc10c49 SCI: VMD video related changes
- VMD videos are now properly started from the associated play subop of the 
kPlayVMD kernel call, and are now properly positioned on screen, and doubled
only if the games require them to be
- Added an enum for VMD video flags

svn-id: r55003
2010-12-22 13:51:35 +00:00
Filippos Karapetis de2ef2edc0 SCI: Removed the system strings code and replaced it with a much more simplified version, thus greatly simplifying handling of system strings
svn-id: r54805
2010-12-07 00:47:05 +00:00
Filippos Karapetis 16006c78f5 SCI: Fixed a bug in the show_instruments console command
svn-id: r54477
2010-11-25 15:59:30 +00:00
Filippos Karapetis 7fc171e3bc SCI: Some slight changes to get the "find_callk" console command working in KQ5
- Ignore invalid object in KQ5 script 784
- Script 980 looks to be an unused leftover, as its object contain references to
classes placed in script 988, which is missing

svn-id: r54455
2010-11-24 11:57:11 +00:00
Filippos Karapetis 788598a689 SCI: Fixed the "version" console command in SCI1.1 and earlier games
svn-id: r54406
2010-11-21 10:31:02 +00:00
Filippos Karapetis ac7c488c7c SCI: kArray wasn't changed in late SCI2.1/SCI3 games (thanks to waltervn)
svn-id: r54402
2010-11-21 02:06:20 +00:00
Filippos Karapetis 97d31c6ac6 SCI: Added the kString/kArray type in the "version" console command
svn-id: r54401
2010-11-21 00:58:06 +00:00
Filippos Karapetis ba6de1bcdf SCI: Added sanity checks for SCI3 scripts bigger than 64KB
- Extended the "verify_scripts" console command for SCI3 scripts
- Added a check for such large scripts when scripts are loaded, with
an error for now, till a mechanism to support such scripts with a
16-bit addressing scheme is in place (e.g. overlaying, or splitting
scripts). Either way, such scripts should span over more than one segment

svn-id: r54304
2010-11-17 20:46:59 +00:00
Filippos Karapetis e4c967a301 SCI: Added the SCI3 equivalent of initialiseObjects(), from a patch by lskovlun
svn-id: r54281
2010-11-17 09:10:43 +00:00