Commit Graph

345 Commits

Author SHA1 Message Date
Eugene Sandulenko
4d4a5837bf MADE: Initialize delta sound buffer 2016-05-09 12:57:27 +02:00
Eugene Sandulenko
375cac6d79 MADE: Init class variables 2016-05-02 17:27:49 +02:00
Eugene Sandulenko
298ea1a76e MADE: Cleanup 2016-05-02 15:19:08 +02:00
Eugene Sandulenko
62142e5add MADE: Plug memory leak 2016-05-02 15:19:08 +02:00
Matthew Hoops
aa6ff44440 BACKENDS: Only expose one set of functions for AudioCDManager
Engines should only have to call one set of functions and not decide between the two. In fact, the 'emulation' API was documented to just call the 'real CD' API.
2016-03-13 13:57:19 +01:00
Matthew Hoops
fb6fe1332a BACKENDS: Move to an openCD() without parameters as the public API 2016-03-13 13:52:24 +01:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Torbjörn Andersson
c06bf58217 MADE: Fix palette fade in/out
The final palette wasn't set so, for instance, at the beginning of
the RTZ intro the Infocom logo wouldn't completely fade to back. I
think this is the correcet fix for that.
2015-07-19 20:32:06 +02:00
Willem Jan Palenstijn
0fbf90d14c MADE: Fix overflow in audio interpolation
The interpolation code for deltaType > 0 read past the end of the
workChunkSize-sized filled area of the buffer (which matches what MADE
did, as far as I can tell). Avoid this by repeating the last value.
2015-07-19 20:27:19 +02:00
Willem Jan Palenstijn
1a4f477d61 MADE: Fix movie audio glitches caused by reset of audio decoder
The sound buffer used in decompressSound() is now stored so that
it can be re-used in the next call of decompressSound, specifically
in chunk type 1.

This caused some clicking/static in the intro of Return to Zork.

Thanks to eriktorbjorn for noticing the glitch and writing most of the patch.
2015-07-19 20:26:50 +02:00
Martin Kiewitz
cae493523c MADE: Music: initialize musicType variable
wasn't initialized in case milesAudio was disabled
2015-07-05 21:26:08 +02:00
Torbjörn Andersson
2b3553306d MADE: Delete AdLib instrument stream after driver initialization 2015-07-05 01:32:53 +02:00
Torbjörn Andersson
cc471ecd07 MADE: Cleanup AdLib driver initialization...
... as per m_kiewitz's suggestions.
2015-07-05 01:09:55 +02:00
Torbjörn Andersson
672bdeff1f MADE: Allow loading of sample.ad from rtzcd.red
At the moment, AdLib music doesn't work yet though. At least not
for this particular case.
2015-07-05 00:08:15 +02:00
Kirben
3ad35f760c MADE: Limit Miles audio to Return to Zork only, and enable Adlib support. 2015-07-02 23:05:50 +10:00
Kirben
46babcc3c4 MADE: Add Miles support for RTZ, currently disabled for Adlib due to known issues. 2015-07-02 20:30:49 +10:00
Strangerke
ae2ba18af3 MADE: Initialize some variables 2015-01-28 07:47:28 +01:00
Strangerke
a1a99745f6 MADE: Initialize some more variables, remove an useless variable 2015-01-27 07:21:52 +01:00
Strangerke
849f383169 MADE: Initialize some variables, remove a useless variable 2015-01-27 07:14:55 +01:00
Matthew Hoops
bf90d36024 MADE: Print v1 database debugging at level 1 instead of all the time 2014-07-11 23:35:38 -04:00
Matthew Hoops
9b282326aa MADE: Error out when a picture cannot be found 2014-07-11 23:32:44 -04:00
Matthew Hoops
3ddf04465e MADE: Error out when a blocks file fails to open 2014-07-11 23:29:37 -04:00
Johannes Schickel
5b70d34479 MADE: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel
0e017f007a Merge pull request #375 from digitall/engineAutoPlug
RFC: Pluggable Engines #2 (No Python, just evolution of current configure shell and make code)
2013-11-26 02:27:11 -08:00
Strangerke
86231d14d5 MADE: Janitorial - Fix spacing errors 2013-11-24 19:17:18 +01:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Johannes Schickel
233512fe10 MADE: Create MusicPlayer in run() instead of MadeEngine's constructor.
This fixes MT-32 emulator initialization. When the constructor is run the
paths like extrapath etc. are not yet set up. Thus, the MT-32 emulator would
not be able to find the necessary roms in case they are in the extrapath.
2013-11-03 19:17:13 +01:00
Johannes Schickel
66fe0181ff MADE: Take advantage of Surface::getPixels. 2013-08-03 04:02:51 +02:00
Johannes Schickel
8f73027d82 MADE: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:32 +02:00
Filippos Karapetis
de230b7696 MADE: Show version-related before size-related incompatibilities in savegames
This gives clearer errors when users use savegames saved with a different version
2013-05-15 21:48:32 +03:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Eugene Sandulenko
e37bcb8884 MADE: Null terminate string. CID 1003874 2013-04-28 23:59:20 +03:00
Max Horn
cdfd5f85c8 ENGINES: Silence clang warning about unused private member _vm
This affects the Console / debugger classes of multiple engines.
An alternative solution would have been to remove the unused _vm
member vars. However, it seems likely that in the future, the _vm
member could be useful for methods added to the console. So instead,
we add a simple assert(_vm) to silence the clang warning.
2013-04-18 23:50:19 +02:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
57e0381b62 MADE: Get rid of casts on CursorManager::replaceCursor calls. 2012-06-16 03:28:43 +02:00
Johannes Schickel
79dfc7be97 MADE: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:38:59 +02:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Tarek Soliman
edc5249772 JANITORIAL: Fix template definition whitespace 2012-02-10 21:17:27 -06:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Johannes Schickel
3b7867ec54 MADE: Silence a few gcc warnings. 2011-10-29 20:56:00 +02:00
Strangerke
abdcc530cc LAUNCHER: Add GUIO_NOASPECT to made 2011-10-23 22:39:36 +02:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Filippos Karapetis
63b3db2753 MADE: Graphics::Surface is a struct, not a class 2011-10-15 12:24:31 +03:00
Filippos Karapetis
a606312c22 MADE: Graphics::Surface is a struct, not a class 2011-10-15 01:16:17 +03:00
Filippos Karapetis
121bef4f79 MADE: Added missing finalize() calls to the game state saving code
Thanks to wjp for finding these
2011-10-10 01:48:47 +03:00