Age | Commit message (Collapse) | Author |
|
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.
If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.
Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.
svn-id: r53961
|
|
svn-id: r53916
|
|
svn-id: r53764
|
|
svn-id: r53762
|
|
svn-id: r53589
|
|
svn-id: r53161
|
|
svn-id: r53160
|
|
svn-id: r53126
|
|
svn-id: r53074
|
|
svn-id: r53052
|
|
svn-id: r53031
|
|
svn-id: r53017
|
|
svn-id: r52994
|
|
svn-id: r52855
|
|
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.
svn-id: r52791
|
|
svn-id: r52782
|
|
svn-id: r52780
|
|
svn-id: r52779
|
|
svn-id: r52778
|
|
svn-id: r52522
|
|
svn-id: r52521
|
|
Also removed 1 or 2 float operations.
svn-id: r52492
|
|
(This crash might have occured on very slow machines or when using valgrind)
svn-id: r52245
|
|
svn-id: r52232
|
|
- Start rewriting audio code for FM-TOWNS versions of Loom, Indy3 and Monkey Island 1 using the recently added code in towns_audio.cpp (Zak should work the same way, but I can't test, since I don't own that one).
- All sound types (pcm, euphony and cd audio) now support volume and balance control (e.g. try walking into/out of the kitchen and opening/closing the door in the Scumm Bar in Monkey Island 1 or walking into/out of the circus tent).
- Pcm sounds now support proper loop start/end and note offsets (e.g. try out the hammer sound in the forge in LOOM for example).
- some other minor improvements
- The FM-Towns versions of Indy 4 and Monkey Island 2 are not affected. I don't have Monkey Island 2, but I presume that it will work like Indy 4. Adding support for these will be a separate task, since they work quite differently.
svn-id: r52198
|
|
svn-id: r52013
|
|
These devices are not able to create appropriate drivers.
The only purpose for now is having proper gui options and flags and music types for the device detector.
The corresponding GUIO flags for the new devices have been added, too.
svn-id: r51995
|
|
(some cleanup to internal driver volume control, minor frequency change for fm-towns)
svn-id: r51930
|
|
for music fading in Kyra 1 FM-Towns and probably other FM-Towns games). This addition applies to emulated CD audio only for now. I haven't found a way to implement this for real CDs yet. SDL doesn't seem to support this (but it might be just me? If anyone knows more about this, just tell me).
svn-id: r51741
|
|
svn-id: r51709
|
|
svn-id: r51708
|
|
svn-id: r51695
|
|
svn-id: r51691
|
|
svn-id: r51671
|
|
svn-id: r51655
|
|
svn-id: r51654
|
|
svn-id: r51653
|
|
svn-id: r51651
|
|
svn-id: r51649
|
|
svn-id: r51648
|
|
- FM-Towns euphony driver completely rewritten based on KYRA FM-Towns and LOOM towns disasm.
- Split all the emu and driver code from sound_towns.cpp into different files to make things a bit less confusing.
- Move the driver code to common space since the exact same euphony driver is used by LOOM which means we could get rid of the outdated and incomplete ym2612 driver/emu implementation (which doesn't even do things like instrument loading, pan position, etc). I haven't tried to add this to the Scumm engine yet, since I am not familiar with it and my priority was to get the driver finished first. But from the look of disasm it shouldn't be difficult to do.
- Introduce a generic FM-Towns audio interface based on FM-Towns system file disasm which was necessary for the euphony driver rewrite. Every FM-Towns game I have seen so far seems to access the audio hardware via these system functions. This interface implementation will also allow reasonably simple creation of new FM-Towns audio drivers (e.g. this could be used for Kings Quest 5 FM-Towns or others).
- Move the PC98 driver to common space, too, since I have a strong feeling that this driver is also used in the PC98 version of Future Wars
- This also improves KYRA FM-Towns music quality, sound effects accuracy and music fading.
svn-id: r51645
|
|
svn-id: r51096
|
|
svn-id: r51094
|
|
svn-id: r50964
|
|
svn-id: r50324
|
|
svn-id: r50281
|
|
support caused by patch #1956501
svn-id: r50145
|
|
svn-id: r50128
|
|
given by cppcheck-1.43.
These are incorrect as '/' operator has precedence over >>, but this does improve readability anyway.
This bug in cppcheck has already been corrected: http://sourceforge.net/apps/trac/cppcheck/ticket/1714
svn-id: r49517
|
|
svn-id: r48955
|