Commit Graph

296 Commits

Author SHA1 Message Date
Yotam Barnoy
ef330ed9b4 Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
svn-id: r48101
2010-02-21 04:04:13 +00:00
Fabio Battaglia
8502d9248e tinsel: Add detection for Discworld 1 floppy EUR version
svn-id: r48088
2010-02-19 12:33:58 +00:00
Max Horn
9de580aa6e TINSEL: Cleanup the 'script workaround' code a bit.
* Rewrap comments to 72 columns
* Add some references to relevant bug tracker items
* Use sizeof instead of handcoding array lengths, which is error prone
  and tedious
* Move definition of WorkaroundEntry from pcode.h to pcode.cpp
* Define FRAGMENT_WORD to make fragment code a bit more readable,
  and also encoding of 16 bit words into it less error prone
* Make all code fragments static

svn-id: r48065
2010-02-15 10:01:26 +00:00
Paul Gilbert
86163d5a6c Script workaround fix for DW1, for being able to give the whistle back to the pirate before the parrot
svn-id: r47987
2010-02-08 10:02:18 +00:00
Johannes Schickel
8ae24a27b3 Yet more Flac -> FLAC changes for consistency.
svn-id: r47847
2010-02-03 09:42:40 +00:00
Johannes Schickel
fe35d372da - Rename FlacStream to FLACStream.
- Rename makeFlacStream to makeFLACStream.

svn-id: r47846
2010-02-03 09:42:11 +00:00
Max Horn
21e1cc4cf8 Switch makeADPCMStream to DisposeAfterUse::Flag
svn-id: r47736
2010-01-31 02:11:41 +00:00
Johannes Schickel
a505d32eff Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
svn-id: r47716
2010-01-30 15:26:54 +00:00
Max Horn
1c906a1f08 Hide VagStream implementation, only expose it via a factory method
svn-id: r47634
2010-01-28 09:38:21 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
4b996e7de7 Reorder params to Audio::makeRawMemoryStream
svn-id: r47492
2010-01-23 23:55:35 +00:00
Max Horn
dc5e08e623 Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
2010-01-19 22:30:33 +00:00
Max Horn
5ee6c79b5d Convert more engines from Mixer::playRaw to Mixer::playInputStream
svn-id: r47377
2010-01-19 11:22:14 +00:00
Max Horn
557bb394de Get rid of Mixer::FLAG_AUTOFREE.
Also fix several recently introduced new/delete vs. malloc/free mismatches.

svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
7ec2da968c Switch most AudioStream factories to use DisposeAfterUse::Flag
svn-id: r47334
2010-01-16 21:36:08 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Max Horn
f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Max Horn
474d49946f Rename QueuedAudioStream to QueuingAudioStream
svn-id: r47179
2010-01-08 22:06:04 +00:00
Max Horn
7efba85064 Switch Tinsel, MADE and some of the video players to QueuedAudioStream
svn-id: r47178
2010-01-08 22:05:12 +00:00
Johannes Schickel
a597e5fef9 Make VagStream a RewindableAudioStream.
svn-id: r47132
2010-01-07 17:04:01 +00:00
Torbjörn Andersson
c83058d30b LordHoto spotted the same kind of overlapping strcpy() call in one more place.
I didn't notice it because it never executed that part when I used Valgrind.

svn-id: r46945
2010-01-03 20:47:04 +00:00
Torbjörn Andersson
f15db40927 Don't uses strcpy() on overlapping memory areas. It's undefined.
svn-id: r46944
2010-01-03 20:42:51 +00:00
Paul Gilbert
2d7c1e2c71 Corrected the Russian Discworld 1 MD5 values
svn-id: r46704
2009-12-29 08:56:41 +00:00
Paul Gilbert
84569c4792 Added MD5 data for Russian Discworld 1
svn-id: r46667
2009-12-28 06:24:06 +00:00
Max Horn
f692015301 Got rid of ReadStream::ioFailed()
svn-id: r46379
2009-12-15 08:18:57 +00:00
Max Horn
c8873d8492 Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
svn-id: r46316
2009-12-09 18:12:51 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
6b8dd7ab7a COMMON: Remove various variants of the md5_file / md5_file_string funcs; turned the (disabled) MD5 test code into a working unit test
svn-id: r46108
2009-11-23 22:30:22 +00:00
Max Horn
b3c3222c23 TINSEL: cleanup
svn-id: r45787
2009-11-09 22:21:23 +00:00
Max Horn
1497c4120e TINSEL: Mark all functions in dialogs.cpp explicitly as public (=extern) or private (=static)
svn-id: r45785
2009-11-09 22:20:25 +00:00
Max Horn
80b8d0af65 TINSEL: Make some const tables static; move static int priorVolMusic into SetMidiVolume to reduce its scope
svn-id: r45784
2009-11-09 22:19:54 +00:00
Max Horn
10b8741c8b TINSEL: Simplifying PolyTinselProcess
svn-id: r45783
2009-11-09 22:19:21 +00:00
Max Horn
2bb7476a20 TINSEL: Add EnablePointing() & DisablePointing() to pdisplay.h; turn DisablePointing from a coroutine into a plain function
svn-id: r45782
2009-11-09 22:18:25 +00:00
Max Horn
e959ef33e5 TINSEL: Small correction to the previous hotfix for _vm->_config crash
svn-id: r45621
2009-11-02 23:48:21 +00:00
Max Horn
d10fe42416 TINSEL: Fix regression caused by the introduction of _vm->_config; proper fix will be introduced later, when dialogs.cpp gets objectified
svn-id: r45620
2009-11-02 23:42:30 +00:00
Max Horn
26981a5ffc TINSEL: Add isValidObject(OBJECT *obj) function; make objectList & currentCD static vars; merge two logic blocks ('ifs') in DoRestoreSceneFrame
svn-id: r45618
2009-11-02 21:57:16 +00:00
Max Horn
5cf868b757 TINSEL: Turn config code into a simple C++ class
svn-id: r45617
2009-11-02 21:56:29 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
7d6e96fa80 TINSEL: Formatting cleanup, remove a dead var, tweaked comment to Get/SetNoBlocking
svn-id: r45450
2009-10-27 21:34:43 +00:00
Max Horn
4b681f7ec7 TINSEL: Add some debugging code; fix LockMem() regression
svn-id: r45430
2009-10-27 00:38:41 +00:00
Max Horn
02636c2071 TINSEL: Rename Poly pp to ptp in various places, for consistency; cleanup
svn-id: r45429
2009-10-27 00:38:19 +00:00
Max Horn
79734dbc15 TINSEL: Make HeapCompact local to heapmem.cpp; add code to print heap statistics
svn-id: r45428
2009-10-27 00:37:54 +00:00
Max Horn
e07a9b0524 TINSEL: Changed heap manager to use malloc internally
svn-id: r45427
2009-10-27 00:37:23 +00:00
Max Horn
05508d8dcd TINSEL: Change MemoryAllocFixed to return a (kind of fake) MEM_NODE pointer; add MemoryDeinit()
svn-id: r45426
2009-10-27 00:36:56 +00:00
Max Horn
5672f353dd TINSEL: Fix warning again
svn-id: r45419
2009-10-26 21:08:15 +00:00
Max Horn
6c1c9eda3a TINSEL: Make MEM_NODE internal to heapmem.cpp
svn-id: r45418
2009-10-26 20:38:34 +00:00
Max Horn
d2e64a350a TINSEL: cleanup
svn-id: r45417
2009-10-26 20:36:44 +00:00
Max Horn
e1de772e72 TINSEL: Fix handling of free memory blocks
svn-id: r45416
2009-10-26 20:35:06 +00:00