Walter van Niftrik
bd82af01c2
SCI: Removed stereo support from the soon-to-be-removed old SCI adlib driver
...
in order to get it working with the new adlib emulator.
svn-id: r40336
2009-05-05 22:07:50 +00:00
Johannes Schickel
16bd319684
At request by DrMcCoy enable DOSBox OPL2 by default whenever DISABLE_DOSBOX_OPL isn't defined.
...
svn-id: r40335
2009-05-05 22:06:54 +00:00
Johannes Schickel
08581ed698
AdLib emulator changes part2:
...
- Add new OPL emulator API (and legacy access API) in sound/fmopl.h
- Add DOSBox OPL emulator.
- Update MAME OPL emulator for the API changes.
svn-id: r40334
2009-05-05 21:47:12 +00:00
Johannes Schickel
d9e0499a36
AdLib emulator changes part1 (breaks compilation :-/):
...
- Add new directory sound/softsynth/opl
- Move sound/fmopl to sound/softsynth/opl/mame
svn-id: r40333
2009-05-05 21:40:50 +00:00
Johannes Schickel
ad38e0def0
Update SCI code for the upcoming AdLib emulator changes:
...
- Switch old 'opl2' code to use less of the MAME specific API.
- Since 'interleave' parameter on "YM3812UpdateOne" will be dropped, work around that in SCI code by hand.
svn-id: r40332
2009-05-05 21:34:32 +00:00
Arnaud Boutonné
10c29205e6
Gob - Fix Fascination CD file size thanks to joostp
...
svn-id: r40331
2009-05-05 17:01:22 +00:00
Torbjörn Andersson
e9e9725946
Added detection entry for the German 16-colour version, which was included on
...
the "Classic Collection" CD I just bought.
svn-id: r40330
2009-05-05 16:58:54 +00:00
Travis Howell
bb4b2a5060
Fix input glitch regression again, by closer matching original PN code.
...
svn-id: r40329
2009-05-05 13:40:16 +00:00
Travis Howell
f4cb6a0b0a
Fix input glitch regression, when examing items in PN.
...
svn-id: r40328
2009-05-05 12:47:37 +00:00
Max Horn
dc29c404a7
SCI: Work around an 'Array used after being disposed' bug that occurs when a GfxVisual gets disposed
...
svn-id: r40327
2009-05-05 12:33:11 +00:00
Max Horn
61dcaad888
COMMON: Changed Array destructor to reset _storage and _size to 0 -- this helps to find 'Array used after being disposed' bugs
...
svn-id: r40326
2009-05-05 12:29:15 +00:00
Max Horn
c36694764d
SCI: Fix my previous changes to internal_stringfrag_strcmp (side remark: Another bonus when using git resp. git-svn, and not SVN: you can commit stuff and test it some time before going public, thus avoid stupid screw ups like this one ;)
...
svn-id: r40325
2009-05-05 12:28:12 +00:00
Max Horn
7e51eb6478
SCI: Actually, it turns out the SystemString is more messed up than I thought: In some places it allocates a memory block of max_size bytes; sometimes max_size+1 bytes; and sometimes max_size*sizeof(reg_t) bytes. And sometimes strings frags are accessed as plain C strings (e.g. when saved), sometimes as a string encode as a series of reg_t values. Ouch :/
...
svn-id: r40324
2009-05-05 12:23:05 +00:00
Max Horn
2980940788
SCI: Simplified internal_stringfrag_strcmp and internal_stringfrag_strncmp
...
svn-id: r40323
2009-05-05 12:20:28 +00:00
Max Horn
36f58b6378
SCI: Fixed out of bounds access in (still incomplete?) string frags code
...
svn-id: r40321
2009-05-05 12:00:51 +00:00
Eugene Sandulenko
66067b0b6a
Fix keymapper compilation
...
svn-id: r40320
2009-05-05 10:54:56 +00:00
Walter van Niftrik
274d890f5b
SCI: Support for 0x4e control changes in new adlib driver, and some cleanup.
...
svn-id: r40312
2009-05-05 01:51:39 +00:00
Joost Peters
e1208f7b2b
Fix compilation without --enable-pn
...
svn-id: r40311
2009-05-04 19:54:53 +00:00
Johannes Schickel
e63b778541
This should fix linking on PSP.
...
svn-id: r40310
2009-05-04 16:52:13 +00:00
Eugene Sandulenko
6a8a9740a1
Fix valgrind warning
...
svn-id: r40309
2009-05-04 16:35:47 +00:00
Max Horn
f2da4bc447
SCI: Got rid of heapmgr.h; further improve the Table code
...
svn-id: r40308
2009-05-04 15:23:33 +00:00
Max Horn
27b74756d8
TINSEL: Added FIXME comment about a valgrind warning (calling strcpy on overlapping strings is unsafe)
...
svn-id: r40307
2009-05-04 15:05:25 +00:00
Max Horn
6e6a8f8d6c
SCI: Unified serializing code for Table subclasses, using template specialization. This whole syncWithSerializer / DefaultSyncer / ArraySyncer code is experimental work in progress ;)
...
svn-id: r40306
2009-05-04 15:05:11 +00:00
Max Horn
88317c1944
SCI: Fixed savestate loading
...
svn-id: r40305
2009-05-04 15:04:55 +00:00
Max Horn
689511a56f
COMMON: Made Array::resize() init/zero the memory it allocates
...
svn-id: r40304
2009-05-04 15:04:39 +00:00
Max Horn
3cf4d1d71a
SCI: Added doxygen comment to MemObject::MemObject
...
svn-id: r40303
2009-05-04 15:04:26 +00:00
Max Horn
c33a875d9f
Fixed new[] / delete mismatch in Common::String
...
svn-id: r40302
2009-05-04 14:20:17 +00:00
Travis Howell
5450bf6630
Fix input been displayed during ending sequence in PN.
...
svn-id: r40300
2009-05-04 12:55:04 +00:00
Travis Howell
42bb8b95be
Fix the car chase scene in PN.
...
svn-id: r40299
2009-05-04 09:17:31 +00:00
Travis Howell
3fc6c92172
All versions of PN share the same saved game format.
...
svn-id: r40298
2009-05-04 09:16:00 +00:00
Travis Howell
511483adc9
Always reset VGA memory pointer, when load zone in PN, since only a single zone is used.
...
svn-id: r40297
2009-05-04 09:13:34 +00:00
Travis Howell
1ce07f5e88
Add code different for PN in vc32_saveScreen(), to fix crashes.
...
svn-id: r40296
2009-05-04 02:05:28 +00:00
Max Horn
a41069d69b
SCI: Started adding methods to MemObject subclasses: constructors, destructors, dereference() (and currently commented out refs to Common::Serializable
...
svn-id: r40295
2009-05-03 22:47:04 +00:00
Max Horn
d960c1e2a5
SCI: Completed transition from MemObject (a union of various structs) to MemObjectNEW (a baseclass for these structs)
...
svn-id: r40294
2009-05-03 22:46:38 +00:00
Max Horn
82f2672008
SCI: Changed SegManager to store the heap pointers in a Common::Arrray
...
svn-id: r40293
2009-05-03 22:46:11 +00:00
Max Horn
6a632b51ad
COMMON: Optimized MemoryPool::freeUnusedPages (if many pages are phased out at once, don't copy everything multiple times around)
...
svn-id: r40292
2009-05-03 22:45:46 +00:00
Max Horn
882c24d2ee
COMMON: Check for failed memory allocations; changed Common::String to use new/delete instead of malloc/free
...
svn-id: r40291
2009-05-03 22:45:31 +00:00
Max Horn
f108a31ad7
SCI: Made SegManager::heap_size unsigned
...
svn-id: r40290
2009-05-03 22:45:13 +00:00
Walter van Niftrik
c7a5a17acf
SCI: adlib support (work-in-progress) for the new music player.
...
svn-id: r40287
2009-05-03 21:11:09 +00:00
Max Horn
5e955ea045
SCI: Continue transition from MemObject to MemObjectNEW
...
svn-id: r40274
2009-05-03 11:07:07 +00:00
Max Horn
418a2a422e
SCI: Got rid of the LIST_ALL_DEALLOCATABLE macro
...
svn-id: r40273
2009-05-03 11:04:37 +00:00
Max Horn
79b0711cfd
SCI: Begun conversion of the MemObject union (used to implement poor man's fake inheritance) into a base class of all the various union members
...
svn-id: r40272
2009-05-03 09:30:59 +00:00
Max Horn
50c8821072
SCI: Renamed MemObject::type and ::segmgr_id to _type resp. _segmgrId, and added accessor methods getType() and getSegMgrId()
...
svn-id: r40271
2009-05-03 09:30:33 +00:00
Max Horn
ba57b21d09
SCI: Changed SegManager to subclass Common::Serializable
...
svn-id: r40270
2009-05-03 09:25:15 +00:00
Max Horn
d695c24b9b
SCI: Changed various params of type MemObject* to the more specific type Script&
...
svn-id: r40269
2009-05-03 09:21:08 +00:00
Max Horn
58ee0314ae
SCI: Added SegManager::getScript method and modified code to make use of it; moved VERIFY from seg_manager.h to seg_manager.cpp
...
svn-id: r40268
2009-05-03 09:20:21 +00:00
Max Horn
9d970009a6
COMMON: Simplified Common::Stack methods using the recent Common::Array improvements
...
svn-id: r40267
2009-05-03 09:19:46 +00:00
Max Horn
cac28ebdbb
SCI: Doxygenified various comments
...
svn-id: r40266
2009-05-03 09:19:21 +00:00
Max Horn
2a89c7d1d4
SCI: Removed MEM_OBJ_RESERVED and related code
...
svn-id: r40265
2009-05-03 09:18:56 +00:00
Max Horn
240be613f9
SCI: Removed dead code
...
svn-id: r40264
2009-05-03 09:18:25 +00:00