Commit graph

498 commits

Author SHA1 Message Date
Filippos Karapetis
4e27844fef SCI: Some changes regarding resources
- Renamed the debug command "resource_size" to "resource_info", as it now provides
the location of where a specified resource is found (i.e. the resource.xxx file, or
the file name itself, if the resource is a patch)
- "duskdump" shows the original location of dumped resources
- loadResource() now shows the location of files that couldn't be loaded

svn-id: r52667
2010-09-10 14:07:32 +00:00
Lars Skovlund
e51b0f6b56 SCI/Debugger: Show class names in addition to addresses in class_table output.
svn-id: r52657
2010-09-09 13:38:00 +00:00
Martin Kiewitz
cf3289ee3f SCI: adding "bpr" and "bpw" debug commands
"bpr" breakpoint on reading of selectors
"bpw" breakpoint of writing of selectors
"bpx" is now breakpoint on executing of selectors only

svn-id: r52490
2010-09-02 09:05:08 +00:00
Martin Kiewitz
f1ad1f1738 SCI: "version" now shows cantBeHere selector
svn-id: r52045
2010-08-12 21:33:23 +00:00
Sven Hesse
96e079a9f7 SCI: Directly use the new Graphics::VMDDecoder class
svn-id: r51922
2010-08-08 01:08:48 +00:00
Martin Kiewitz
fcede4680a SCI: adding bpk debug command
currently removing or listing such breakpoints is not yet supported

svn-id: r51710
2010-08-03 19:06:40 +00:00
Johannes Schickel
dd38e424e7 SCI: Fix leaks in ResourceManager::listResources caller code.
svn-id: r51666
2010-08-02 22:27:26 +00:00
Matthew Hoops
142fb8a1f1 SCI: Don't include the time running the debugger in the game running time
svn-id: r51548
2010-07-31 19:18:35 +00:00
Martin Kiewitz
d49d1d60fe SCI: added said spec dump ability to logkernel
svn-id: r51242
2010-07-24 11:51:09 +00:00
Martin Kiewitz
b984d9afc0 SCI: logkernel changes
removing old manual debug code, use logkernel * on/off to log all calls

svn-id: r51222
2010-07-23 20:59:27 +00:00
Martin Kiewitz
3a45e47c5c SCI: adding new debug command logkernel
svn-id: r51220
2010-07-23 20:47:15 +00:00
Filippos Karapetis
529af0fc3e Extended the "version" console command to also show the game version found in the VERSION file
svn-id: r51150
2010-07-22 16:22:48 +00:00
Filippos Karapetis
d53e5fbfb7 SCI: Removed the restoring parameter of the run_vm() function
svn-id: r51076
2010-07-20 23:15:07 +00:00
Matthew Hoops
5b4fd084b0 SCI: Fix order of characters when using hexDumpReg.
svn-id: r50998
2010-07-18 17:48:48 +00:00
Willem Jan Palenstijn
921c9a8e33 SCI: Add basic debugging command for 'said'
svn-id: r50991
2010-07-18 13:31:05 +00:00
Willem Jan Palenstijn
1d31c278e6 SCI: Fix 'parse' debug command parameter handling
svn-id: r50957
2010-07-17 12:37:02 +00:00
Martin Kiewitz
92c0e7e800 SCI: fix console commands so that console gets detached correctly
svn-id: r50940
2010-07-16 19:40:51 +00:00
Max Horn
1d3a0f6dec SCI: Turn global object g_debugState into SciEngine member var
svn-id: r50836
2010-07-12 23:20:33 +00:00
Martin Kiewitz
ba776fb293 SCI: implemented subsignatures for kDoSound
svn-id: r50755
2010-07-09 12:06:41 +00:00
Filippos Karapetis
9add81aaf2 SCI: Dropped support for the very old saved game versions 9 - 11. Rationale: a lot has changed since then, we're still not stable, and this helps clean up the code, thus we're still in a position to drop support for old saved games
svn-id: r50738
2010-07-07 20:12:41 +00:00
Martin Kiewitz
322d57a1dd SCI: adding support to kernel signatures that invalid references may also get allowed - doing exactly this for kGraph(restoreBox) - fixes castle of dr. brain when quitting the game - maybe a game specific workaround would be better?!?!
svn-id: r50737
2010-07-07 18:35:07 +00:00
Martin Kiewitz
9b14164bfc SCI: accepting decimal/hexadecimal input on segment_info & kill_segment debug command, cleanup
svn-id: r50735
2010-07-07 14:19:36 +00:00
Martin Kiewitz
c349d7130c SCI: removing invalid reference error from signature checking, instead adding new type "invalid", so that full call parameter debug information is available
svn-id: r50725
2010-07-06 14:26:29 +00:00
Martin Kiewitz
5527882daa SCI: implemented new kernel call signature format
svn-id: r50678
2010-07-05 14:36:31 +00:00
Matthew Hoops
18b449d4fd Add a hexDumpReg function to view references that are not raw and fix SCI32 strings/arrays in segmentInfo.
svn-id: r50660
2010-07-04 23:38:08 +00:00
Max Horn
9d47b191f6 SCI: Rename some more stuff
svn-id: r50553
2010-07-01 16:05:47 +00:00
Filippos Karapetis
bff3e89e48 SCI: Removed the FreeSCI music code
svn-id: r50532
2010-06-30 13:49:05 +00:00
Filippos Karapetis
9f1320d5cc SCI: Made the SoundCommandParser a member of the SciEngine class and removed it from the EngineState, since it's static throughout the course of a game
svn-id: r50484
2010-06-29 09:00:08 +00:00
Martin Kiewitz
6402d64419 SCI: cleanup of execstack, output of backtrace slightly modified, is now also displaying local calls and exports
svn-id: r50445
2010-06-28 14:21:56 +00:00
Max Horn
31b2902714 SCI: Revise GC interface: use Common::Array<reg_t> instead of callbacks
This means a little bit more overhead but makes the code much more readable
and understandable.

svn-id: r50429
2010-06-28 11:22:41 +00:00
Max Horn
30218a2c32 SCI: Make Script member vars private; add const qualifiers
Only three Script members remain public (for now)

svn-id: r50428
2010-06-28 11:22:20 +00:00
Filippos Karapetis
1faebccce2 Cleanup, remove unused/obsolete code
svn-id: r50403
2010-06-27 21:29:35 +00:00
Johannes Schickel
819dc92802 Escape a "?" character to prevent "??)" to be interpreted as trigraph and thus becoming "]".
svn-id: r50399
2010-06-27 21:04:47 +00:00
Martin Kiewitz
5f9cc9e8f8 SCI: adding alias for vmvars ("vv") and vmvarlist ("vl")
svn-id: r50397
2010-06-27 20:43:32 +00:00
Martin Kiewitz
0436f2823d SCI: added additional output to vmvars command
svn-id: r50395
2010-06-27 20:38:41 +00:00
Martin Kiewitz
1537d61299 SCI: added alias for bplist ("bl") and bpdel ("bc"), added capability of deleting all breakpoints by using "bc *"
svn-id: r50391
2010-06-27 20:11:15 +00:00
Martin Kiewitz
7644631daf SCI: removing debug command "set_acc", use "vmvars a" instead
svn-id: r50389
2010-06-27 20:02:58 +00:00
Martin Kiewitz
4653153910 SCI: added new command "p" / "stepover" to execute one command, but skip send/calls processing. single-step is now "trace" (alias "s" and "t"), stepping till ret is "step_ret" (alias "pret"), removed unused kDebugSeek
svn-id: r50388
2010-06-27 19:58:32 +00:00
Martin Kiewitz
01bfcf98cc SCI: debug command vmvars - adding acc support
svn-id: r50378
2010-06-27 15:50:51 +00:00
Filippos Karapetis
4785e1fd3f Renamed some variables
svn-id: r50284
2010-06-25 19:09:19 +00:00
Max Horn
6ee82a2027 SCI: Introduce SciGameId enum
svn-id: r50273
2010-06-25 16:16:29 +00:00
Martin Kiewitz
c6b0a5e896 SCI: detect, if SCI1.1 game is merging or copying palette instead of using gameIds. Also prints method used, when using debug command "version"
svn-id: r50261
2010-06-25 10:04:31 +00:00
Filippos Karapetis
0a102981f0 Moved the SelectorCache struct inside selector.h, where it belongs, and fixed some header dependencies in the process
svn-id: r50183
2010-06-23 15:23:37 +00:00
Filippos Karapetis
5d378574a4 Fixed show_instruments to ignore instruments in Sierra's special MIDI channel 15, and updated the comment regarding PQ2 accordingly (it only has 2 incorrect instruments)
svn-id: r50021
2010-06-18 15:18:14 +00:00
Max Horn
359be0c066 SCI: Change SciEngine's 'char *getGameID()' to 'Common::String getGameId()'
svn-id: r49968
2010-06-17 23:14:34 +00:00
Max Horn
cfcbdf8656 SCI: Remove selector_name function, some cleanup
svn-id: r49966
2010-06-17 23:13:30 +00:00
Filippos Karapetis
c8dfa255a3 Fixed the selector console command (don't change the selector name to lowercase...)
svn-id: r49949
2010-06-17 20:49:33 +00:00
Filippos Karapetis
93890a49c1 Added back the functionality to skip videos
svn-id: r49911
2010-06-16 23:28:20 +00:00
Martin Kiewitz
02c3397ddf SCI: fix debug command "show_instruments", got broken by r49905 on purpose
svn-id: r49906
2010-06-16 21:07:26 +00:00
Martin Kiewitz
af65de6e1a SCI: implement channel remapping for SCI1
svn-id: r49905
2010-06-16 21:02:58 +00:00