Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
8aa6d25c77
ALL: centerd -> centered
2011-04-14 14:42:21 +02:00
Max Horn
2e095e25f2
ALL: centre -> center
2011-04-14 14:34:28 +02:00
Max Horn
84184aabc0
ALL: colour -> color
2011-04-14 14:12:35 +02:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
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-12 16:53:15 +02:00
dhewg
d83a83ef50
JANITORIAL: Remove/comment unused vars
...
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
dhewg
8c70f2a584
M4: Fix twisted assignment
...
Thanks to -Wunused-but-set-variable
2011-03-29 21:57:43 +02:00
Max Horn
8c931fd1e8
AUDIO: Add Audio::MidiPlayer::createDriver(), let some engines use it
2011-03-28 18:06:36 +02:00
Paul Gilbert
110f6b9be7
M4: Corrected incorrect case in cheat key handler
2011-03-28 20:57:01 +11:00
Max Horn
7949d7c6de
AUDIO: Move more common code to Audio::MidiPlayer
...
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-25 14:15:53 +01:00
Max Horn
e76a8a8eb6
M4: Change MidiPlayer to derive from Audio::MidiPlayer
...
Also fix the _driver double delete regression I recently introduced
2011-03-24 16:46:47 +01:00
Max Horn
088bd7a70b
ENGINES: Remove unused MIDI pass-through code
2011-03-23 17:07:48 +01:00
Max Horn
e70fd59b35
ENGINES: Further simplify pseudo MidiDrivers; fix some regressions
...
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-23 16:49:41 +01:00
Max Horn
29847ea42d
AUDIO: Change several fake MidiDrivers to MidiDriver_BASE subclasses
...
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-23 15:25:47 +01:00
Max Horn
8982fff1b7
AUDIO: Add pure virtual MidiDriver::isOpen() method
...
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-22 23:51:47 +01:00
dhewg
dc6c88f350
M4: Init volume levels on startup
2011-03-19 16:04:53 +01:00
D G Turner
10e2cec6b9
M4: Updated for OSystem Palette RGBA->RGB Change.
2011-02-20 03:20:06 +00:00
Ori Avtalion
84a8bdc86b
JANITORIAL: Remove duplicate #include's
...
svn-id: r55889
2011-02-12 10:00:52 +00:00
Max Horn
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
Paul Gilbert
e00c17712c
M4: Removed redundant colour index recalculation in palette manager
...
svn-id: r55098
2011-01-03 11:36:39 +00:00
Max Horn
2cae2fc4d0
M4: Remove unnecessary reference to file.h
...
svn-id: r54563
2010-11-28 23:39:02 +00:00
Max Horn
2180b2d6b5
COMMON: Split common/stream.h into several headers
...
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
d6592aaba6
M4: Do not use Common::SubReadStream where ReadStream suffices
...
svn-id: r54342
2010-11-18 19:27:01 +00:00
Paul Gilbert
0ac1eb82c6
M4: Changed debug calls to debugCN since they all have newlines
...
svn-id: r54047
2010-11-03 09:44:03 +00:00
Max Horn
8047f79a46
M4: Convert last few printfs to debug
...
svn-id: r54039
2010-11-02 09:50:29 +00:00
Max Horn
7cf7b198ad
M4: Remove redundant fflush calls
...
svn-id: r54038
2010-11-02 09:50:14 +00:00
Paul Gilbert
97a0c281eb
M4: Converted all printf's to debug
...
svn-id: r54035
2010-11-02 00:51:12 +00:00
Paul Gilbert
274fbd028d
M4: Added function pointers to the the script engine data map list
...
svn-id: r54034
2010-11-02 00:15:18 +00:00
Paul Gilbert
997625c3b3
M4: Reworked dumpFile to use Common::DumpFile
...
svn-id: r54033
2010-11-02 00:13:04 +00:00
Max Horn
a984fb17c2
GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
...
svn-id: r54007
2010-11-01 16:03:35 +00:00
Max Horn
334173d333
M4: Remove unused getter method MadsM4Engine::system()
...
svn-id: r53959
2010-10-30 21:26:13 +00:00
Max Horn
c07e58ba06
M4: Disable code using FILE, fopen, etc. and add explantory FIXME
...
svn-id: r53958
2010-10-30 21:25:52 +00:00
Filippos Karapetis
e7ff1574ef
M4: Fixed OP_NOT and OP_COMP behavior again (thanks wjp)
...
svn-id: r53505
2010-10-15 15:51:59 +00:00
Filippos Karapetis
c2e08538ee
M4: Fixed code analysis warnings - bug #3087845
...
svn-id: r53500
2010-10-15 15:05:23 +00:00
Max Horn
4ccce19876
ENGINES: Enhance namespace comments a bit
...
svn-id: r53484
2010-10-15 12:48:19 +00:00
Paul Gilbert
53a5ba21ab
M4: NULL terminate after a strncpy
...
svn-id: r52794
2010-09-18 12:08:59 +00:00
Paul Gilbert
9cab0a5cfe
M4: Added missing breaks to switch statement
...
svn-id: r52793
2010-09-18 12:02:52 +00:00
Matthew Hoops
b1532eca9f
M4: Silence gcc warning
...
Original warning: "format not a string literal and no format arguments"
svn-id: r52388
2010-08-25 13:31:14 +00:00
Paul Gilbert
4395e75aef
M4: Fixes for compiler errors
...
svn-id: r52365
2010-08-25 06:55:11 +00:00
Paul Gilbert
212479ab79
M4: Implementation of script engine
...
svn-id: r52364
2010-08-25 06:42:54 +00:00
Eugene Sandulenko
ee23fe34b0
M4: fix warnings
...
svn-id: r52148
2010-08-17 11:01:20 +00:00
Paul Gilbert
28de229b51
M4: Added further code fragments to enable player to move again
...
svn-id: r51462
2010-07-29 11:41:51 +00:00
Paul Gilbert
fd804eb44b
M4: Further work done on the setup and starting of actions
...
svn-id: r51461
2010-07-29 11:04:54 +00:00
Paul Gilbert
0191f8fd71
M4: Bugfixes for depth ordering to fix the Z order of on-screen objects
...
svn-id: r51239
2010-07-24 08:08:19 +00:00
Paul Gilbert
ec460ca2ca
M4: Implemented lots of support code for pre-action handling
...
svn-id: r51235
2010-07-24 05:56:06 +00:00
Paul Gilbert
cd66b7d11b
M4: Enhanced the show_codes debug command to also show a scene's walking points
...
svn-id: r51230
2010-07-24 01:07:04 +00:00
Paul Gilbert
b062b413aa
Removed some old deprecated code that was drawing the status text a second time
...
svn-id: r51201
2010-07-23 10:53:21 +00:00
Paul Gilbert
42851e047f
Lots of action related fields added; scroll over default action is now displayed on-screen
...
svn-id: r51200
2010-07-23 09:49:40 +00:00
Johannes Schickel
ddb364412e
Fix use of "&&" instead of "&" for bit masking. (This looks much more sensible at least!)
...
svn-id: r50953
2010-07-16 23:30:50 +00:00