aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/tinsel.cpp
AgeCommit message (Collapse)Author
2015-12-01TINSEL: Remove redundant assert check in SetHookScenePaul Gilbert
In the original, a second SetHookScene call can validly occur due to first placing the cover-switched book in the bookcase, and then by the thief leaving if his arrival happens immediately.
2015-07-04TINSEL: Add drivers sub folder in Discworld 1, for Miles audio files.Kirben
2015-06-28TINSEL: DW1: add support for Miles Audio driverMartin Kiewitz
- AdLib + MT32 support
2014-10-17TINSEL: Move object creation from constructor to run()Torbjörn Andersson
Moved the creation of _midiMusic, _pcmMusic, _sound and _bmv from the constructor to run(). It was reported on the forum that the MT-32 emulator didn't work for Discworld, and I'm speculating that this is because it was being initialized before the "extra path" had been added to the search path. It's likely that not all of these objects are needed for every version of the game. Fixing that is left as an exercise for someone more familiar with the different game versions than me.
2014-02-18TINSEL: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-22TINSEL: Take advante of Engine::initializePath.Johannes Schickel
This makes sure that the game path is only ever added once for the PSX version of DW1. Most noticably this will make the warning about the game path being present in SearchSet disappear on startup.
2013-08-10TINSEL: Fix DW2 assertion when quitting during cutsceneTorbjörn Andersson
Call _bmv->FinishBMV() before setting g_pCurBgnd to NULL. Otherwise, there will be an assertion if quitting during a cutscene while a subtitle is being shown. (At least I think that's the condition.) (Also, it seems to be a good idea to call it before EndScene(), because even though there was no assertion, I got a lot of warnings when I did it after.)
2013-04-12TINSEL: Remove the unused noFadeTable parameter from the fader functionsFilippos Karapetis
2012-12-15TINSEL: Always convert the inventory objects to the native endianessFilippos Karapetis
This is needed for DW1 Mac
2012-12-11TINSEL: Handle the invalid max polygons value in DW1 MacFilippos Karapetis
2012-12-11TINSEL: Add resource handling of the BE resources in DW1 MacFilippos Karapetis
This is the second attempt. All the BE resources of DW1 Mac are handled correctly now. Added READ_16, READ_32, FROM_16, FROM_32 and TO_32 to handle all of the different cases where endianess is already handled. Note that the game scripts are LE, so these haven't been changed
2012-12-10TINSEL: Revert most of the engine BE resource handling codeFilippos Karapetis
This was added in commit 3fdddd53b2b970aae3e967bebc0bff6e642a5111. However, having handling for both BE and LE resource complicates the engine code unnecessarily. Thus, a different approach will be done.
2012-11-24TINSEL: Add scrollwheel support to save/load and inventoryTorbjörn Andersson
2012-11-22TINSEL: Fix typo in commentTorbjörn Andersson
2012-05-17TINSEL: Refactored Tinsel engine to use the Common coroutine schedulerPaul Gilbert
2012-02-22TINSEL: Rename globals to add g_ prefix.Alyssa Milburn
2011-12-30TINSEL: Take advantage of KeyState::hasFlags.Johannes Schickel
2011-09-08TINSEL: Made some static data const.Johannes Schickel
2011-06-02TINSEL: Replace snprintf() usage with Common::String::format()D G Turner
Safer and less portability issues.
2011-05-25ALL: initialise -> initializeMatthew Hoops
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-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
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-18COMMON: Rename Error to ErrorCode, introduce new Error classMax Horn
2011-04-17TINSEL: Prefer Surface::create taking a PixelFormat over the one taking a ↵Johannes Schickel
byte depth.
2011-04-08TINSEL: Added numeric key mappings for function keysPaul Gilbert
2011-03-25TINSEL: Remove unused TinselEngine::_musicVolume memberMax 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-01-02JANITORIAL: Suppress some useless includesArnaud Boutonné
svn-id: r55091
2010-11-20TINSEL: Preliminary functionality for reading BE data filesPaul Gilbert
svn-id: r54392
2010-11-16TINSEL: Fixed compilation with MSVCFilippos Karapetis
svn-id: r54271
2010-11-16TINSEL: Mark all (?) global vars with a FIXME commentMax Horn
Use of global vars is what prevents RTL from working in Tinsel (and probably in other engines). More specifically, the fact that many global vars are not explicitly inited when the engine is (re)launched. svn-id: r54262
2010-11-08COMMON: Push #include audiocd.h in system.h out to .cpp filesMax Horn
svn-id: r54148
2010-11-08BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes onlyMax Horn
This commit contains the AudioCDManager changes from the gsoc2010-opengl branch. The other changes in that branch are restricted to the backends directory only (plus configure). The Nintendo DS and Dreamcast ports still need to be ported over to the new Audio CD system, but that should be fairly easy to do. svn-id: r54147
2010-11-01TINSEL: Fixed two places that weren't reset when exiting to the launcher and ↵Filippos Karapetis
reentering the game. There could be (and most likely are) others as well svn-id: r54028
2010-10-13OPENGL: Merged from trunk, from rev 52105 to 53396.Johannes Schickel
This includes an rather hacky attempt to merge all the recent gp2x backend changes into the branch. I suppose the gp2x backend and probably all new backends, i.e. gph, dingux etc., might not compile anymore. Since I have no way of testing those it would be nice if porters could look into getting those up to speed in this branch. svn-id: r53399
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-12TINSEL: Remove unused variableEugene Sandulenko
svn-id: r52684
2010-09-11TINSEL: Fix for #3032780 - Mute not respected in DW1Paul Gilbert
svn-id: r52674
2010-08-25TINSEL: Fix bug #3032780: "DW: Mute setting does not work"Eugene Sandulenko
Bug #3032778 was fixed too as it is the duplicate. Since there is no engine-specific logic, rely on superclass' setupSoundSettings(), and use it on startup too. svn-id: r52374
2010-08-17TINSEL: fix warningEugene Sandulenko
svn-id: r52149
2010-07-30Merged from trunk, from Rev 50841 to HEADAlejandro Marzini
svn-id: r51495
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-13Merged from trunk, from Rev 49499 to HEADAlejandro Marzini
svn-id: r50840
2010-06-25AUDIO: get rid of MDT_PREFER_MIDI since it should be sufficient to either ↵Florian Kagerer
select MDT_PREFER_MT32 or MDT_PREFER_GM svn-id: r50288
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-06-15Renamed getAudioCD to getAudioCDManager.Alejandro Marzini
svn-id: r49678
2010-06-09- Revised abstract AudioCDManager.Alejandro Marzini
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem. - Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL. svn-id: r49548
2010-05-04Move DebugChannel related code to new headerMax Horn
svn-id: r48935