aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
AgeCommit message (Collapse)Author
2011-04-14ALL: centerd -> centeredMax Horn
2011-04-14ALL: centre -> centerMax Horn
2011-04-14ALL: colour -> colorMax Horn
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-03-29JANITORIAL: Remove/comment unused varsdhewg
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29M4: Fix twisted assignmentdhewg
Thanks to -Wunused-but-set-variable
2011-03-28AUDIO: Add Audio::MidiPlayer::createDriver(), let some engines use itMax Horn
2011-03-28M4: Corrected incorrect case in cheat key handlerPaul Gilbert
2011-03-25AUDIO: Move more common code to Audio::MidiPlayerMax Horn
This also should fix some regressions from the previous commits, related to MidiParser's either being leaked, or being deleted and then used again (i.e., crashing). I tested as many games as I had available, but further testing of all affected engines is called for anyway.
2011-03-24M4: Change MidiPlayer to derive from Audio::MidiPlayerMax Horn
Also fix the _driver double delete regression I recently introduced
2011-03-23ENGINES: Remove unused MIDI pass-through codeMax Horn
2011-03-23ENGINES: Further simplify pseudo MidiDrivers; fix some regressionsMax Horn
The regression affected AGOS and maybe some others; specifically, the real MidiDriver would have been deleted twice -- I previously missed that the Engine instances takes care of freeing the real MidiDriver, not the MidiPlayer wrapping it. This commit should clarify the ownership of the real MidiDriver for most pseudo MidiDrivers.
2011-03-23AUDIO: Change several fake MidiDrivers to MidiDriver_BASE subclassesMax Horn
Many engines follow the advice in audio/midiparser.h and create a "pseudo-MidiDriver" subclass. But MidiParser really only needs a tiny subset of the MidiDriver capabilities, namely those found in MidiDriver_BASE. So we try to subclass from that whenever possible; this allows us to remove many stub methods, and enables further future simplifications.
2011-03-22AUDIO: Add pure virtual MidiDriver::isOpen() methodMax Horn
This in turn enables modifying MidiDriver_MPU401::close() to allow it to be called on a midi driver that has not yet been opened. The specific issue that triggered me to make these changes was a crash-upon-quit in HUGO, caused by it instantiating a midi driver, then encountering an error (missing hugo.dat) *before* having opened the new midi driver; the general cleanup code then tries to close the (not yet opened) midi driver -> kaboom Also fixed some engines which were leaking MidiDriver instances.
2011-03-19M4: Init volume levels on startupdhewg
2011-02-20M4: Updated for OSystem Palette RGBA->RGB Change.D G Turner
2011-02-12JANITORIAL: Remove duplicate #include'sOri Avtalion
svn-id: r55889
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-02-07COMMON: OSystem now has a PaletteManagerMax Horn
svn-id: r55806
2011-01-03M4: Removed redundant colour index recalculation in palette managerPaul Gilbert
svn-id: r55098
2010-11-28M4: Remove unnecessary reference to file.hMax Horn
svn-id: r54563
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-18M4: Do not use Common::SubReadStream where ReadStream sufficesMax Horn
svn-id: r54342
2010-11-03M4: Changed debug calls to debugCN since they all have newlinesPaul Gilbert
svn-id: r54047
2010-11-02M4: Convert last few printfs to debugMax Horn
svn-id: r54039
2010-11-02M4: Remove redundant fflush callsMax Horn
svn-id: r54038
2010-11-02M4: Converted all printf's to debugPaul Gilbert
svn-id: r54035
2010-11-02M4: Added function pointers to the the script engine data map listPaul Gilbert
svn-id: r54034
2010-11-02M4: Reworked dumpFile to use Common::DumpFilePaul Gilbert
svn-id: r54033
2010-11-01GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warningsMax Horn
svn-id: r54007
2010-10-30M4: Remove unused getter method MadsM4Engine::system()Max Horn
svn-id: r53959
2010-10-30M4: Disable code using FILE, fopen, etc. and add explantory FIXMEMax Horn
svn-id: r53958
2010-10-15M4: Fixed OP_NOT and OP_COMP behavior again (thanks wjp)Filippos Karapetis
svn-id: r53505
2010-10-15M4: Fixed code analysis warnings - bug #3087845Filippos Karapetis
svn-id: r53500
2010-10-15ENGINES: Enhance namespace comments a bitMax Horn
svn-id: r53484
2010-09-18M4: NULL terminate after a strncpyPaul Gilbert
svn-id: r52794
2010-09-18M4: Added missing breaks to switch statementPaul Gilbert
svn-id: r52793
2010-08-25M4: Silence gcc warningMatthew Hoops
Original warning: "format not a string literal and no format arguments" svn-id: r52388
2010-08-25M4: Fixes for compiler errorsPaul Gilbert
svn-id: r52365
2010-08-25M4: Implementation of script enginePaul Gilbert
svn-id: r52364
2010-08-17M4: fix warningsEugene Sandulenko
svn-id: r52148
2010-07-29M4: Added further code fragments to enable player to move againPaul Gilbert
svn-id: r51462
2010-07-29M4: Further work done on the setup and starting of actionsPaul Gilbert
svn-id: r51461
2010-07-24M4: Bugfixes for depth ordering to fix the Z order of on-screen objectsPaul Gilbert
svn-id: r51239
2010-07-24M4: Implemented lots of support code for pre-action handlingPaul Gilbert
svn-id: r51235
2010-07-24M4: Enhanced the show_codes debug command to also show a scene's walking pointsPaul Gilbert
svn-id: r51230
2010-07-23Removed some old deprecated code that was drawing the status text a second timePaul Gilbert
svn-id: r51201
2010-07-23Lots of action related fields added; scroll over default action is now ↵Paul Gilbert
displayed on-screen svn-id: r51200
2010-07-16Fix use of "&&" instead of "&" for bit masking. (This looks much more ↵Johannes Schickel
sensible at least!) svn-id: r50953
2010-07-16Implemented path-finding logic for accurate player movementPaul Gilbert
svn-id: r50936