Commit graph

2263 commits

Author SHA1 Message Date
Matthew Hoops
ee223528fc SCUMM: Add support for an alternate version of The Dig's demo 2011-05-02 11:24:04 -04:00
Max Horn
59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Max Horn
58eebff803 AUDIO: Rename clock() -> updateClock() in SID emulator 2011-05-02 16:31:30 +02:00
Max Horn
7407a48cd3 SCUMM: fix whitespaces (patch #3281359) 2011-05-02 14:32:49 +02:00
Matthew Hoops
83cd8268ad SCUMM: Fix v60he games 2011-05-01 17:12:56 -04:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +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
Matthew Hoops
af28efae41 SCUMM: Fix differences in soccer's u32 op_1011 2011-04-27 20:23:19 -04:00
Matthew Hoops
1331c998e3 SCUMM: Add separate game id's for soccermls and soccer2004
There are subtle differences in their u32 code that we need to handle
2011-04-27 20:23:19 -04:00
Matthew Hoops
f584f2f312 SCUMM: Implement soccer u32 opcodes 1013, 1019, 1020, and 1021 2011-04-27 10:15:28 -04:00
md5
3ab0a133b3 SCUMM: Fixed compilation with MSVC
Both double and float parameters were passed to atan2(), which didn't match
any variants of atan2()
2011-04-27 13:29:51 +03:00
Matthew Hoops
68d0602b0d SCUMM: Avoid long double usage 2011-04-26 17:32:34 -04:00
Matthew Hoops
78725365c5 SCUMM: Begin work on the soccer u32 code
Players no longer appear in the upper-left corner of the screen and play can actually hault now (ie. the ball can go out of play). The players/ball do not move from their positions yet, but it's a start.
2011-04-26 17:13:35 -04:00
dhewg
e19fe1c53f ASM: Defines do not get mangled 2011-04-23 03:39:38 +02:00
dhewg
983b044ccb ARM: Global symbols get an underscore prefix on darwin
apply same solution as for the sound/smush ARM asm here
2011-04-23 03:39:37 +02:00
dhewg
b4f8a63171 ASM: Replace .equ with .set in proc3ARM.s
gas from the iphone failchain doesn't know about .equ, and .set is
synonymous with .equ - which it supports
2011-04-23 03:39:37 +02:00
Johannes Schickel
4a7360d29b SCUMM: Do not pass non-string literal but "%s" + string to displayMessage.
Since displayMessages usualy vsnprintf internally it is not quite safe to pass
any string to it, since it might include a format argument like %n, which is
unsafe.
2011-04-22 21:49:25 +02:00
Thierry Crozat
44c1d38222 DOTT: MM message can now be translated. 2011-04-22 20:01:53 +01:00
Max Horn
b929699ad2 SCUMM: Make use of new Common::Error type 2011-04-18 18:22:04 +02:00
Max Horn
cd2fcaf4ca COMMON: Remove kInvalidPathError 2011-04-18 18:22:03 +02:00
Max Horn
73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
Johannes Schickel
53d982b24f SCUMM: Setup proper pixel format for virtual screen surfaces.
Thanks to Max for notifying me that SCUMM seems always to use RGB555.
2011-04-18 15:48:46 +02:00
Johannes Schickel
da734a4af0 ALL/GRAPHICS: Remove Surface::bytesPerPixel. 2011-04-17 21:27:34 +02:00
Johannes Schickel
b0bd8fa795 SCUMM: Prefer Surface::format over Surface::bytesPerPixel. 2011-04-17 20:58:07 +02:00
Johannes Schickel
9d7f7fc4b6 SCUMM: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. 2011-04-17 16:30:59 +02:00
Eugene Sandulenko
886ea29bbf SCUMM: Add md5 from bug #3264965 for fbpack 2011-04-17 14:10:46 +03:00
Max Horn
4ab51a8b26 SCUMM: Typo 2011-04-14 09:26:50 +02:00
Max Horn
1759209b3b SCUMM: Use shared ADPCM data tables 2011-04-13 12:48:58 +02:00
Max Horn
9c2ff87db7 SCUMM: Fix bug #3187622 (COMI: incorrect decoding of audio codec 13/15) 2011-04-13 11:49:25 +02:00
Max Horn
b52b6b8d2b SCUMM: Resolve some code duplication 2011-04-13 11:49:25 +02:00
Max Horn
29962bfc73 SCUMM: Move ADPCM decoder into separate function 2011-04-13 11:49:24 +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
Max Horn
7ce3719587 SCUMM: Move _heV7RoomIntOffsets from ScummEngine to ScummEngine_v70he 2011-04-05 15:18:09 +02:00
Max Horn
827561911a SCUMM: Move _heV7DiskOffsets from ScummEngine to ScummEngine_v70he 2011-04-05 15:18:09 +02:00
Max Horn
f19b27388c SCUMM: Split ScummEngine::generateFilename, move HE specifics to class ScummEngine_v60he 2011-04-05 15:18:09 +02:00
Max Horn
fb53303847 SCUMM: Rename InfoStuff to SaveStateMetaInfos 2011-04-05 15:18:08 +02:00
Max Horn
d7a6bf5846 SCUMM: Move ActorHE into its own header, move some HE specific stuff out of scumm.h 2011-04-05 15:18:08 +02:00
Max Horn
55e65cee80 SCUMM: Cleanup 2011-04-05 15:18:08 +02:00
Max Horn
a12dada822 SCUMM: Fix off-by-one mistakes in out-of-bounds checks; name some constants 2011-04-05 15:18:08 +02:00
Max Horn
6bd180646d SCUMM: Extend debug command 'object' to allow querying state 2011-04-04 13:04:17 +02:00
Max Horn
0725be325f SCUMM: Extend workaround for bug #1668393 (see bug #3267665) 2011-04-04 13:04:17 +02:00
Max Horn
6eeebfb191 SCUMM: Check for cutSceneStackPointer underflows 2011-04-04 09:56:50 +02:00
Matthew Hoops
dfc8723726 SCUMM: Add support for append mode to o72_openFile()
The baseball2001 hall of fame data saves properly now
2011-04-02 00:59:29 -04:00
Matthew Hoops
211842c2fb SCUMM: Make sure finalize is called from o60_closeFile() 2011-04-01 22:52:12 -04:00
Matthew Hoops
6247ed5b45 SCUMM: Stub off file append mode in o72_openFile()
This is used in several Backyard Sports titles. This stub is required for now so that baseball2001 can continue after trying to save the Hall of Fame data.
2011-04-01 20:38:25 -04: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
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
7b02dac3c5 ENGINES: Use Common::StackLock in more places 2011-03-23 15:25:46 +01:00
Max Horn
756f592b61 SCUMM: Remove unused iMuse MIDI 'passthrough' code 2011-03-23 15:25:46 +01:00