Commit Graph

48 Commits

Author SHA1 Message Date
D G Turner
95c0afa2c3 AGI: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-14 03:54:10 +01:00
Martin Kiewitz
9dd0cd51d5 AGI: Clean up VM opcode handling
so that invalid opcodes won't crash ScummVM anymore
2017-02-23 23:54:45 +01:00
Martin Kiewitz
b31990246e AGI: Added console command to disable automatic saves
Helps creating various saved games for Mixed Up Mother Goose
2016-02-16 05:36:53 +01:00
Martin Kiewitz
26791ec7d9 AGI: Add verbose flags to debug command screenobj 2016-02-04 18:49:15 +01:00
Johannes Schickel
6778175f6d AGI: Fix formatting.
This mostly enforces tabs for indentation and spaces for formatting. But also
fixes spaces on empty lines, some extra/missing spaces.

astyle + manual fixup
2016-02-02 20:15:18 +01:00
Martin Kiewitz
839ac0a6a4 AGI: Rename _game.lognum to _game.curLogicNr
Also a bit of cleanup
2016-02-01 16:21:13 +01:00
Martin Kiewitz
4bc01ab7d5 AGI: getflag/setflag/etc. cleanup
renamed getflag() to getFlag()
renamed setflag() to setFlag()
renamed flipflag() to flipFlag()
preagi: renamed setFlag for this engine to setWinnieFlag
2016-01-31 17:56:53 +01:00
Martin Kiewitz
1987b4b4e5 AGI: remove commented out code in console.cpp 2016-01-29 15:10:17 +01:00
Martin Kiewitz
8a595e7771 AGI: graphics rewrite + cleanup
- graphics code fully rewritten
- Apple IIgs font support
- Amiga Topaz support
- Word parser rewritten
- menu code rewritten
- removed forced 2 second delay on all room changes
  replaced with heuristic to detect situations, where it's required
- lots of naming cleanup
- new console commands show_map, screenobj, vmvars and vmflags
- all sorts of hacks/workarounds removed
- added SCI wait mouse cursor
- added Apple IIgs mouse cursor
- added Atari ST mouse cursor
- added Amiga/Apple IIgs transition
- added Atari ST transition
- user can select another render mode and
  use Apple IIgs palette + transition for PC versions
- inventory screen rewritten
- SetSimple command now properly implemented
- PreAGI Mickey: Sierra logo now shown
- saved games: now saving controller key mapping
  also saving automatic save data (SetSimple command)
- fixed invalid memory access when saving games (31 bytes were saved
  using Common::String c_ptr()

Special Thanks to:
- fuzzie for helping out with the Apple IIgs font + valgrind
- eriktorbjorn for helping out with valgrind
- LordHoto for figuring out the code, that caused invalid memory
  access in the original code, when saving a game
- sev for help out with reversing the Amiga transition

currently missing:
- mouse support for menu
- mouse support for system dialogs
- predictive dialog support
2016-01-29 13:22:22 +01:00
Torbjörn Andersson
93f631e3fe AGI: Remove unused variable 2015-12-06 17:17:19 +01:00
Martin Kiewitz
f840eaf736 AGI: add new debug command "version"
Tries to figure out the game version
It does this by scanning through all game scripts
Sadly there is no better way, because there is no common
location of the game version
2015-11-23 22:51:21 +01:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
Johannes Schickel
6aac905dfd AGI: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Filippos Karapetis
05ff55e162 AGI: Some cleanup of the debug console
- Merge the two different room debug commands in Mickey
- Remove the "crc" stub console command
2012-11-06 20:44:09 +02:00
Matthew Hoops
6f83052b40 AGI: Cleanup PreAGI console code 2011-08-15 22:24:42 -04:00
Matthew Hoops
cb43e9694b AGI: Make Mickey inherit from PreAgiEngine 2011-08-15 11:55:03 -04:00
Matthew Hoops
fcd0cda9a9 AGI: Make Winnie inherit from PreAgiEngine 2011-08-15 11:55:01 -04:00
Jussi Pitkanen
a4e0cd53f0 AGI: Refactor interpreter core (somewhat akin to SCI)
* Instruction tables are now defined in opcodes.{cpp,h}.

* Move opcode handlers from Agi::AgiEngine to Agi
* Opcode handlers take as parameter a pointer to AGI state (AgiGame)
2011-08-13 23:26:51 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Max Horn
7c2323bdc3 AGI: Replace report() macro by debug() / warning()
This makes AGI quite a bit less noisy by default.

svn-id: r53868
2010-10-26 22:33:49 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Eugene Sandulenko
1c1fb7c9ac AGI: add optional parameter to 'room' debug console command.
svn-id: r49730
2010-06-15 10:27:04 +00:00
Eugene Sandulenko
4046cd8457 AGI: debugger. Improved usage output, added safeguards to runopcode command
svn-id: r49729
2010-06-15 10:26:46 +00:00
Torbjörn Andersson
1928a7ba38 Silenced some cppcheck warnings.
svn-id: r47427
2010-01-21 23:05:33 +00:00
Eugene Sandulenko
8ad5694cb1 Reduce header dependencies for AGI engine.
svn-id: r46942
2010-01-03 20:15:44 +00:00
Eugene Sandulenko
1a321a2064 Cleanup
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
ed797c0709 Implement debug commands "room" and "bt"
svn-id: r41249
2009-06-06 17:43:26 +00:00
Eugene Sandulenko
93d62da652 Whitespace fixes and C++ comments
svn-id: r41239
2009-06-06 17:39:13 +00:00
Filippos Karapetis
85b3a4a59e Added a debug command, did some cleanup
svn-id: r30351
2008-01-09 10:31:52 +00:00
Filippos Karapetis
b0f2e823e0 Cleanup of the debugger commands, added some more commands, removed now obsolete debug code
svn-id: r30350
2008-01-09 09:46:26 +00:00
Filippos Karapetis
c14d420141 Added a debug console for Mickey's Space Adventures
svn-id: r30349
2008-01-09 09:19:17 +00:00
Filippos Karapetis
a08b6606a6 Add a debug console in Winnie (patch by clone2727)
svn-id: r29215
2007-10-13 23:48:59 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Torbjörn Andersson
c7ce7ec614 Fixed error handling: we count the command itself in argc, and returning false
means "close the debug console" which probably isn't what we want.

svn-id: r26050
2007-03-10 11:16:16 +00:00
David Symonds
a2f49d31fb Remove #include "agi/text.h"; fixes build. Pointyhat to aquadran.
svn-id: r25103
2007-01-16 13:09:42 +00:00
Paweł Kołodziejski
b47eb95316 Formating names in source code
svn-id: r25101
2007-01-16 12:40:51 +00:00
Stuart George
374f87d7cb Added AdvancedDetection to AGI engine. Only added KQ1 for testing
svn-id: r24877
2006-12-19 01:11:41 +00:00
Paweł Kołodziejski
1d3ca2e409 first phase of objectisation of agi engine
svn-id: r24808
2006-12-06 19:27:02 +00:00
Max Horn
919092e5fc Overhaul of the debugger code
* Moved Common::Debuggger to GUI::Debugger (mainly to satisfy linker
  restrictions)
* Change the base Debugger class to *not* be a template class anymore;
  instead, a thin (template based) wrapper class is used to hook up
  debugger commands
* Removed duplicate Cmd_Exit and Cmd_Help methods in favor of a single
  version of each in GUI::Debugger
* New Cmd_Help doesn't word wrap after 39/78 chars, but rather queries
  the console to determine when to wrap
* Debugger::preEnter and postEnter aren't pure virtual anymore

svn-id: r23890
2006-09-16 16:58:27 +00:00
Torbjörn Andersson
db8968b28f Fixed warning.
svn-id: r22620
2006-05-24 22:05:12 +00:00
Paweł Kołodziejski
383b598c5c converted to scummvm console style
svn-id: r22618
2006-05-24 21:40:24 +00:00
Torbjörn Andersson
4a583216fb Fixed most - not all - GCC warnings.
svn-id: r22614
2006-05-24 19:51:37 +00:00
Paweł Kołodziejski
20cf952b68 removed defines USE_PCM_SOUND, AGDS_SUPPORT, USE_HIRES
svn-id: r22609
2006-05-24 14:00:08 +00:00
Paweł Kołodziejski
691ae72a59 include mouse support always
svn-id: r22605
2006-05-24 11:39:29 +00:00
Paweł Kołodziejski
107073537e imported AGI engine
svn-id: r22588
2006-05-23 23:43:52 +00:00