aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
AgeCommit message (Collapse)Author
2011-05-23TINSEL: Fix bug #3306020, DW2: Crash On Entering Sewerseriktorbjorn
This is a simpler fix than the one I committed to the 1.3 branch, but since it carries a theoretical risk of regressions it's so much more macho.
2011-05-18TINSEL: Remove declarations for non-existent functions FindObject() and ↵Christoph Mallon
GetNextObject(). Signed-off-by: Max Horn <max@quendi.de>
2011-05-18TINSEL: Correctly handle the pDispList OBJECT linked lists, i.e. use ↵Christoph Mallon
OBJECT** for a pointer to the head. Signed-off-by: Max Horn <max@quendi.de>
2011-05-18TINSEL: Document pDispList OBJECT linked list 'trick'Max Horn
2011-05-18TINSEL: Revert commit 43ca9c86ab to fix bug #3303799Max Horn
Commit 43ca9c86ab causes segfaults when trying to start a game in tinsel. However, the code in question still should be investigated, as it casts OBJECT** pointers to OBJECT*. Very fishy.
2011-05-17COMMON: Registers RandomSources in constructor with the event recorderMax Horn
This also removes the dependency of engines on the event recorder header and API, and will make it easier to RandomSources that are not properly registered.
2011-05-16ENGINES: Unify engine namesThierry Crozat
This unifies the engine names in MetaEngine::getName() and the credits. In particular drop "Engine" or "engine" from the names when it was present and use expanded names in credits when the MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-10TINSEL: Cleanup reel saving codeMax Horn
2011-05-10TINSEL: Remove unnecessary castsMax Horn
2011-05-01Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".Johannes Schickel
For further discussion check here: https://github.com/scummvm/scummvm/pull/16 Conflicts: graphics/png.cpp
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-28TINSEL: Fixed code analysis warnings in bug #3087863Paul Gilbert
2011-04-28JANITORIAL: Format forward declarations to follow conventionOri Avtalion
2011-04-18COMMON: Rename Error to ErrorCode, introduce new Error classMax Horn
2011-04-18Merge pull request "New mixer mute handling."Johannes Schickel
See https://github.com/scummvm/scummvm/pull/12 for more information.
2011-04-17TINSEL: Prefer Surface::create taking a PixelFormat over the one taking a ↵Johannes Schickel
byte depth.
2011-04-14ALL: centre -> centerMax Horn
2011-04-14ALL: colour -> colorMax Horn
2011-04-14TINSEL: Removed an unused global variablemd5
2011-04-13TINSEL: Clean up code a bit, since we now handle digital audio muting ↵Johannes Schickel
differently.
2011-04-13TINSEL: Move custom ADPCM decoders to tinsel engineMax 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-04-12TINSEL: cleanupMax Horn
2011-04-10TINSEL: Make the cdFlags array in drives.cpp static again.Johannes Schickel
2011-04-10TINSEL: Removed some unused global static variablesmd5
2011-04-10TINSEL: Merged NewName() inside DoSave() in order to remove a static varmd5
2011-04-10TINSEL: Cleanup - removed obsolete definesmd5
2011-04-10TINSEL: Changed cdFlags to be non-static and constantmd5
2011-04-10TINSEL: Removed the dummy ForceEntireRedraw() functionmd5
2011-04-10TINSEL: Removed the useless LookAtBuffers() functionmd5
2011-04-08TINSEL: Added numeric key mappings for function keysPaul Gilbert
2011-03-30TINSEL: Remove dead variablesMax Horn
2011-03-28AUDIO: Add Audio::MidiPlayer::createDriver(), let some engines use itMax Horn
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-25TINSEL: Remove unused TinselEngine::_musicVolume memberMax Horn
2011-03-24TINSEL: Change MidiMusicPlayer to derive from Audio::MidiPlayerMax 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-23TINSEL: Make MidiMusicPlayer::_parser and _mutex protectedMax Horn
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-02-24TINSEL: Added enhanced music support for the German CD "Neon Edition" ↵md5
re-release of DW1 (bug #2827022)
2011-02-15TINSEL: Adapt to setPalette RGBA->RGB change.Johannes Schickel
This is done by converting the internal RGBA palette data to RGB before calling setPalette. This might not be the best solution, but looking a bit into the engine it seems like changing all the code to work with RGB instead of RGBA might require some bit of work.
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-02-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2011-02-07COMMON: OSystem now has a PaletteManagerMax Horn
svn-id: r55806
2011-02-02MIDI: Fix for bug #3170988 - "MONKEY2: Messed up MT-32 music"Filippos Karapetis
This is a regression from r55256. Apparently, SCUMM has issues when sending a sustain off on a notes off event. Thus, this has been turned into a feature, which is disabled by default. Since MADE, SAGA and tinsel all share the same music code and play regular MIDI files, and this feature fixes hanging notes for them, it has been enabled for them. Also, applied a patch for a bug regarding the notes off event in MADE and tinsel, which has been applied in SAGA already svn-id: r55746
2011-01-30TINSEL: Memory Leak Fix in Coroutines.David Turner
This fixes the leak from the COR0_BEGIN_CODE macro's CoroContextTag allocation. Setting the _sleep value to negative values prevented the deallocation of these. Have tested for obvious regressions, but a full DW/DW2 playtest should be done to confirm that this doesn't cause any issues. Thanks to fingolfin for indicating this solution. svn-id: r55671
2011-01-02JANITORIAL: Suppress some useless includesArnaud Boutonné
svn-id: r55091
2010-12-07DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engineMax Horn
svn-id: r54815