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
Max Horn
4f8665fc83
COMMON: Move isFoo functions to namespace Common, add doxygen comments
2012-02-20 16:18:27 +01:00
Max Horn
658080deed
ALL: Avoid using is* macros from ctype.h
...
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Chris Warren-Smith
ed07b99b22
BADA: Misc changes merged from appstore release
2011-10-18 23:22:25 +10:00
Willem Jan Palenstijn
48dd74dd6d
SCUMM: Revert "Avoid calling malloc with new_size=0"
...
This reverts commit d6f7e59336
, and
marks the issue with a FIXME. The problem is that it not only skips the malloc,
but also the other code in that block.
2011-08-22 10:24:26 +02:00
Chris Warren-Smith
d6f7e59336
BADA: Avoid calling malloc with new_size=0
2011-08-21 16:38:18 +10:00
Christoph Mallon
23a0f5318c
JANITORIAL: Remove trailing empty lines.
2011-08-07 13:53:33 +02:00
Littleboy
b694a78f62
ANALYSIS: Add static casts to is* functions
...
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
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
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
dhewg
e19fe1c53f
ASM: Defines do not get mangled
2011-04-23 03:39:38 +02:00
Max Horn
b52b6b8d2b
SCUMM: Resolve some code duplication
2011-04-13 11:49:25 +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
Johannes Schickel
bb9e82c3b3
SCUMM: Adapt to setPalette RGBA->RGB change.
2011-02-14 17:08:33 +01: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
David Turner
ec885e5665
SCUMM: Fix Valgrind mismatched delete errors in SMUSH channel base class.
...
This was due to the SMUSH channel base class using new/delete to manage buffer, but the imuse_channel and saud_channel classes which subclass and override this using malloc/free.
The more C++ solution of moving all to new/delete was tried, but the buffer is passed into a MemoryReadStream and free()'d there, so all classes have been moved to malloc/free instead.
This is not a critical problem as the buffers are byte primitive type anyway.
svn-id: r55660
2011-01-30 16:50:55 +00:00
Max Horn
277113f600
SCUMM: Fix out of bound access (discovered by Code Analysis in MS VS2010; thanks to aquadran for helping verify the fix)
...
svn-id: r53575
2010-10-18 19:03:24 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
92c896d883
Patch #2973290 : Semicolon cleanup
...
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
4e99cfc549
Switch from Common::tag2string(foo).c_str() to tag2str(foo)
...
svn-id: r48276
2010-03-18 15:04:38 +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
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
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
Max Horn
c489259353
Switch SCUMM from AppendableAudioStream to QueuingAudioStream
...
svn-id: r47183
2010-01-08 22:10:19 +00:00
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +00:00
Max Horn
3399c3aeb6
Change doxygen inline comments from "//!" to "///" as proposed on -devel
...
svn-id: r44802
2009-10-08 21:28:57 +00:00
Paweł Kołodziejski
63208a20fd
ops, remove some ancient change
...
svn-id: r44268
2009-09-23 10:49:18 +00:00
Paweł Kołodziejski
66df660e2a
this should fix bug #2820389
...
svn-id: r44267
2009-09-23 10:40:13 +00:00
Travis Howell
122ff32d75
Remove excess spaces.
...
svn-id: r44029
2009-09-11 10:13:54 +00:00
Bertrand Augereau
d454c9b379
Minor constness fixes
...
svn-id: r43974
2009-09-06 10:51:20 +00:00
Max Horn
cbea1a1193
Added more GCC_PRINTF attributes, and fixed resulting warnings in format strings
...
svn-id: r42054
2009-07-03 10:40:49 +00:00
Torbjörn Andersson
0999534749
The error() and warning() functions add ! and newline automatically. (I didn't
...
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
2009-05-31 10:02:16 +00:00
Torbjörn Andersson
2ba1da41e8
Silenced warning.
...
svn-id: r40464
2009-05-11 19:04:06 +00:00
Eugene Sandulenko
efbc0f139b
Fix bug #2678272 : "FT: Russian version crashes on windows and psp"
...
svn-id: r40461
2009-05-11 18:34:54 +00:00
Max Horn
6f4b567124
SCUMM: Split intern.h into multiple headers
...
svn-id: r39567
2009-03-20 16:33:58 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Torbjörn Andersson
0e1c4fccca
Hopefully fixed the regression described in bug #2299682 ("FT: Crash in the intro
...
(regression in r34516)"), after discussing with Fingolfin. We didn't use to check
the size of the STRK chunk before, and he didn't remember why we do now, so I've
removed that test again.
svn-id: r35107
2008-11-17 20:36:10 +00:00
Max Horn
9b160804ab
Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
...
svn-id: r34700
2008-09-30 12:27:38 +00:00
Torbjörn Andersson
8fc8531f70
Since no one has come up with any better suggestion... this should fix #2123258
...
("COMI: Crash after video (SAN) play"). The eos() function won't return true
until we've tried to read *past* the end of the stream.
svn-id: r34689
2008-09-29 20:40:58 +00:00
Max Horn
706fb37061
Modified uncompress in common/zlib.h to return a bool, so that we don't have to #include the real zlib.h; fixed PSP backend to not run uncompress inside an assert (which would cause it to not be invoked when turning off asserts)
...
svn-id: r34576
2008-09-16 11:42:21 +00:00
Max Horn
f8ccd2dede
SCUMM: Got rid of class Chunk
...
svn-id: r34518
2008-09-13 22:41:30 +00:00
Max Horn
15d16b94a7
SCUMM: Merged class Chunk & FileChunk
...
svn-id: r34517
2008-09-13 20:22:52 +00:00
Max Horn
71a204d63c
SCUMM: Merged class BaseChunk & Chunk; got rid of MemoryChunk
...
svn-id: r34516
2008-09-13 20:04:19 +00:00
Max Horn
655ce26b3f
Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
...
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Horn
5ceb635420
Merging more of the GSoC 2008 RTL branch: SCUMM
...
svn-id: r34253
2008-09-01 20:20:20 +00:00
Paweł Kołodziejski
1f04462011
remove broken code, but i'll add better feature into compression tool
...
svn-id: r34119
2008-08-24 07:54:36 +00:00
Kostas Nakos
b809665671
do away with the smush force redraw hack
...
svn-id: r33991
2008-08-18 17:24:25 +00:00