aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
AgeCommit message (Collapse)Author
2011-01-06AGI: Rewrote predictive code matcherMax Horn
The new code is simpler, avoids a potential buffer overrun (by avoiding to to use a buffer in the first place), and hopefully has slightly more sane matching properties. svn-id: r55135
2011-01-05AGI: cleanupMax Horn
svn-id: r55124
2010-12-07DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engineMax Horn
svn-id: r54815
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-19ALL: Push down deps on stream.h from .h to .cpp filesMax Horn
svn-id: r54358
2010-11-07COMMON: Rename and tweak MD5 functionsMax Horn
* names now comply to our naming conventions * the function computeStreamMD5AsString which computes the MD5 as a hex string now returns it as a Common::String * add doxygen comments svn-id: r54121
2010-11-01ENGINES: Replace many printfs by warning/debug/debugNMax Horn
svn-id: r54031
2010-11-01ENGINES: Get rid of some (f)printfsMax Horn
svn-id: r54011
2010-10-27AGI: Add note about AgiEngine::parseFeaturesMax Horn
svn-id: r53872
2010-10-26AGI: Fix memory leak in AgiEngine::parseFeatures()Max Horn
svn-id: r53869
2010-10-26AGI: Replace report() macro by debug() / warning()Max Horn
This makes AGI quite a bit less noisy by default. svn-id: r53868
2010-10-23ALL: Fix indention (whitespaces -> tabs)Max Horn
svn-id: r53738
2010-10-15ENGINES: Enhance namespace comments a bitMax Horn
svn-id: r53484
2010-10-15AGI: Fix some code analysis warnings (bug #3087825)Eugene Sandulenko
svn-id: r53470
2010-10-12AGI: Fix bug #3017908 with MIDI musicEugene Sandulenko
Bug #3017908: "AGI: No music with the new MIDI patch" Thanks to Raziel^ for pinpointing the bug. svn-id: r53166
2010-10-12JANITORIAL: Cleanup (mostly whitespace)Torbjörn Andersson
svn-id: r53161
2010-10-11AGI: Fix one more strncpy/strncat issueWillem Jan Palenstijn
svn-id: r53148
2010-10-11AGI: Fix possible buffer overflow.Johannes Schickel
This is based on patch #3085298 "overflows in agi and parallaction". svn-id: r53147
2010-10-03AGI: Properly detect the autosave slot in the save dialogTorbjörn Andersson
Forward-ported from branch. Let's do this the easy way for now, even if I'm not sure why the save dialog shows the autosave slot anyway. svn-id: r52997
2010-09-26AGI: Fix bug in cmd_cancel_line()Torbjörn Andersson
We have to update cursor position, not just terminate the input buffer. This makes Ctrl-C work as intended, which fixes one half of bug #3054184 ("SQ1 AGI: keyboard special keys are not functioning properly"). I'm not sure if the second half actually is a bug. svn-id: r52899
2010-09-25AGI: Fix C64 AGI picturesMatthew Hoops
The initial screen color needs to be 0 and not 0xf for these. Winnie C64/Apple II should be completable now, with some graphical glitches and palette problems. svn-id: r52881
2010-09-22AGI: Fix for Bug #3067263 "SQ2: ScummVM hanging on the inventory screen"David Turner
This was due to a loop in AgiEngine::selectItems(int n), which lacked a check that the engine was quitting or restarting. svn-id: r52856
2010-09-21AGI: Deconfusify the AGI music driverTorbjörn Andersson
(After a brief discussion with sev.) AdLib is now the old Sarien sound, PCjr is the new PCjr emulation. PCjr is still the default; we don't need to ask getMusicType() how to get there. svn-id: r52838
2010-09-21AGI: Changed meaning of pcjr sound device. Now it is Sarien emuEugene Sandulenko
Music drivers: default: proper Tandy/PCJr adlib: proper Tandy/PCJr pcjr: old Sarien emu amiga: old Sarien emu in Amiga mode pcspk: Sarien emu in PCSpk mode (quite wrong) midi: 4 channel MIDI svn-id: r52836
2010-09-20AGI: Fix bug #3061578: AGI: PCjr Mode Not Default for DOS GamesEugene Sandulenko
svn-id: r52831
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-16AGI: Initialise PCjr emulator channels on creationTorbjörn Andersson
Because chanGen() gets called very early, and sometimes it crashes ScummVM as soon as the game starts. Actually, it's probably enough to initialise a couple of fields in _tchannel[], but I figured it couldn't hurt to clear all of _channel[] and _tchannel[]. svn-id: r52741
2010-09-15MIDI: Send a reset MIDI device signal on startup.Johannes Schickel
This is currently done in the engine code. I adapted AGI, AGOS, DRACI, GROOVIE, LURE, MADE, QUEEN, SAGA, SKY, TINSEL and TOUCHE to send a reset device on startup. The sound output still works fine (started up a game from every engine), so this should hopefully not introduce any regressions. As far as I can tell it seems that SCUMM does send a proper device reset, so I did not touch it. KYRA only sends a proper reset for MT-32 currently. I am not sure about SCI though. This fixes bug #3066826 "SIMON: MIDI notes off when using RTL after SCI". svn-id: r52736
2010-09-14AGI: Fix compilation.Travis Howell
svn-id: r52719
2010-09-14AGI: Improve support for MT-32 in the MIDI output.Johannes Schickel
Formerly the AGI MIDI code did not setup the channel mask properly, in case "native_mt32" was set. This resulted in one missing channel (i.e. channel 0), since the MT-32 only responds to data for channels 1-9. svn-id: r52718
2010-08-25AGI: Respect mute settingEugene Sandulenko
svn-id: r52373
2010-08-25AGI: Fix bug #3034370Eugene Sandulenko
Bug #3034370: "Manhunter: New York keyboard unresponsive". Actually the keyboard was made responsive after June implementation of set.key, still the game speed was increasing. Fixed that too. svn-id: r52369
2010-08-25AGI: Reset controllers on game restartEugene Sandulenko
svn-id: r52368
2010-08-24AGI: Fix bug #3017908: "AGI: No music with the new MIDI patch"Eugene Sandulenko
Fixed by performing proper MIDI initialization. svn-id: r52332
2010-07-26AGI: Fix valgrind warningEugene Sandulenko
svn-id: r51312
2010-07-26AGI: Fix crash on exit thanks to valgrindEugene Sandulenko
svn-id: r51311
2010-07-26AGI: Fix spelling and formattingEugene Sandulenko
svn-id: r51310
2010-07-23AGI: Fix bug #3017911Eugene Sandulenko
Bug #3017911: "AGI (Fan): SQ0 - Ego flickering". It is a regression from r49745, as it appeared, some of the screen updates were too much. svn-id: r51223
2010-07-17DEBUGGER: Simplify how our console debugger works / is usedMax Horn
* 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-16Use "true" instead of "1" in if statements to make clang a bit more happier ↵Johannes Schickel
with -Werror. svn-id: r50943
2010-07-16Cleanup.Torbjörn Andersson
svn-id: r50928
2010-07-14Fix non-PCSPK sound types in AGI.Matthew Hoops
svn-id: r50891
2010-07-02AGI: Removed the deprecated (and confusing) getGameId() function inside the ↵Filippos Karapetis
AgiEngine class, and fixed a related bug, too svn-id: r50607
2010-07-02AGI: Fixed bug #3017905 - "AGI: GR - Crash on start". A free() was done on ↵Filippos Karapetis
an already freed reference svn-id: r50606
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-06-21AGI: Turn some more AGI static functions into AgiEngine methodsMax Horn
svn-id: r50127
2010-06-21AGI: Change a static var to member var AgiEngine::_lastTickTimerMax Horn
svn-id: r50126
2010-06-21AGI: Turn timerHack and curLogic into AgiEngine members; get rid of some ↵Max Horn
#defines svn-id: r50125
2010-06-21AGI: Change AGI commands/opcodes to member methodsMax Horn
svn-id: r50124
2010-06-20Don't go into "menu input mode" unless the game currently allows the menus toTorbjörn Andersson
be displayed. I hope this is the correct fix to keep Police Quest 1 from hanging if you press Escape while reading the newspaper in the briefing room. svn-id: r50072