Commit graph

87 commits

Author SHA1 Message Date
Max Horn
395b11b26c added box drawing code from the old debugger to the new debugger (and cleaned it up + fixed it for rooms wider than one screen)
svn-id: r7491
2003-05-14 00:35:08 +00:00
Max Horn
f618744799 make it possible to use stdio for the debugger, instead of the console dialog (useful because the console is very narrow, which is annoying when using e.g. the 'box' command
svn-id: r7490
2003-05-13 23:56:30 +00:00
Max Horn
08f7ec192e NUM_ACTORS -> _numActors (for consistency)
svn-id: r7489
2003-05-13 23:42:41 +00:00
Max Horn
acb35fc915 renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and _realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive)
svn-id: r7423
2003-05-10 21:49:59 +00:00
Max Horn
98881c3a6a init all VAR_* variables to 0xFF; replaced access to _vars in the form _vars[VAR_*] by VARS(VAR_*) which performs a validity checK; renamed _vars to _scummVars to make sure I updated all places; fixed two places where V6 and newer games would access V5 vars (but there are still some left, it seems); checked VAR access for now only generates a warning
svn-id: r7393
2003-05-08 15:48:50 +00:00
Chris Apers
f5caac359d Fix a bug with PalmOS
svn-id: r7368
2003-05-06 08:55:49 +00:00
Jonathan Gray
d12ff07ce2 patch #732518 loom learn drafts debugger command by erik
svn-id: r7342
2003-05-05 10:02:04 +00:00
Max Horn
975d325a92 Patch #731613: debugger tab-completion (thanks, Willem!)
svn-id: r7293
2003-05-03 21:49:19 +00:00
Max Horn
0cacf945f2 Patch #730309: DEBUGGER: Command to list Loom drafts
svn-id: r7233
2003-04-30 21:16:45 +00:00
Max Horn
e13e117976 pedantic checks
svn-id: r7177
2003-04-28 13:16:37 +00:00
Jonathan Gray
8137b70bdf close console after we run a script
svn-id: r7104
2003-04-25 13:13:16 +00:00
Jonathan Gray
3da2a09443 add importres and script starting functionality to the debugger
svn-id: r7100
2003-04-25 02:53:35 +00:00
Jonathan Gray
8fdcf48fc5 hmm
svn-id: r7083
2003-04-23 05:10:17 +00:00
Jonathan Gray
8d39d6ddb1 add script command to debugger and convert old printscripts function to new debugger
svn-id: r7082
2003-04-23 05:05:20 +00:00
James Brown
a8dfcb4eda Add somewhat hacky 'restart' command to debugger. Still needs work :)
svn-id: r7071
2003-04-22 04:40:30 +00:00
James Brown
79189f2e12 Dump Scumm error() to debugger
svn-id: r7033
2003-04-20 16:25:48 +00:00
Jonathan Gray
90dd401eab work around strange problem that breaks fbpack when _showStack is a bool...
svn-id: r7027
2003-04-20 14:28:25 +00:00
Jonathan Gray
f1353701f8 add stack tracing option to debugger
svn-id: r7025
2003-04-20 08:04:27 +00:00
Jonathan Gray
c597d0d4d6 add script hex dumping option to debugger
svn-id: r7024
2003-04-20 06:55:09 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
093428ae9a and more cleanup
svn-id: r6718
2003-03-06 17:58:13 +00:00
Jonathan Gray
3d75e1191d add commands to debugger, objects prints a table of local objects, object num pickup (room) will pickup an object, _currentRoom if no room specified, be warned this currently doesn't check the room is valid for the particular object number
svn-id: r6656
2003-03-02 07:50:49 +00:00
James Brown
a0b77e7389 LCA03 sync: Modified version of the untrap patch, debugger
savegame/loadgame changes, attempts at making the ComI save/load screen
(F1) work. The savegame part of the screen does not work due to a crash,
the load part SHOULD... but something resets the saveload flags before
they are processed (help! :)

svn-id: r6545
2003-01-26 06:17:25 +00:00
Paweł Kołodziejski
e7c81140ea fixed compilation under VC6
svn-id: r6502
2003-01-18 16:26:53 +00:00
Jonathan Gray
c982b4f00b add help command to debugger to list commands and vars, we should probably have a help string for each but this is much better than reading the code for now :)
svn-id: r6501
2003-01-18 16:04:28 +00:00
James Brown
97ff115e7d Fix shadowed variable in debugger, change bundle compression tables to be dynamic
svn-id: r6499
2003-01-18 15:54:38 +00:00
Jonathan Gray
d591eb77f7 add the view/set debug level command 'level' from the old debugger
svn-id: r6496
2003-01-18 14:51:06 +00:00
Jonathan Gray
0b4830e80a add bounds check for debugger costume switcher
svn-id: r6492
2003-01-18 11:23:02 +00:00
Jonathan Gray
41a5927a96 add ability to change actor costume via the debugger
svn-id: r6491
2003-01-18 10:38:32 +00:00
James Brown
08d34d17c0 Skeleton for actor debugger commands - current command is useful for states where actors in CMI get stuck with "I can't reach it"
type stuff. :)

svn-id: r6351
2003-01-07 09:46:51 +00:00
Max Horn
f167eafee6 added two debugger commands
svn-id: r6268
2002-12-30 01:27:33 +00:00
James Brown
77b905d0c2 Add Save/Load game commands to Debugger
svn-id: r6219
2002-12-28 05:17:46 +00:00
James Brown
92c8e4ef1e Fix NewGui for higher resolutions (eg, CMI)
svn-id: r6216
2002-12-28 04:51:34 +00:00
James Brown
4e373ef467 Add room command to debugger
svn-id: r6029
2002-12-20 13:50:24 +00:00
Max Horn
e6e8468a31 indentation fixes; added a constructor (after all the debugger is a global var which is not allocated by new, hence we can't relay on memory being zeroed). And no I am not actually gonna use force against Endy, I just was frustrated :-)
svn-id: r6005
2002-12-16 22:46:17 +00:00
Max Horn
22d35c4fac use the indention/formatting we agreed one. BTW function names should start lower case... oh well
svn-id: r6000
2002-12-16 21:38:27 +00:00
James Brown
e989809665 New debugger core. Doesn't really have anything implemented yet, but is far more expandable and userfriendly than our previous.
Enable experimental console debugger by default, as I havn't written the text console code yet :)

svn-id: r5990
2002-12-16 06:21:08 +00:00