Commit Graph
86814 Commits
Author SHA1 Message Date
Filippos Karapetis 1ebae78ff1 SCI/SOUND: Applied patch #3117577 - "SCI: MT-32 plays "warble" of notes when music resumes", with some slight modifications
This is only used by SCI for now, but it is probably correct to apply this for
all engines, thus an appropriate TODO has been added

svn-id: r54460
2010-11-24 15:12:43 +00:00
Filippos Karapetis 9493b9add5 SCI: Moved handling of special reverb value 127 outside of the MIDI driver
svn-id: r54459
2010-11-24 14:51:29 +00:00
Filippos Karapetis c3cb4c92a8 SCI: Placed some selectors added in SCI1.1 in a separate table
svn-id: r54458
2010-11-24 14:38:08 +00:00
Filippos Karapetis 364d37b302 SCI: some changes to the way reverb is handled
- "Invalid" SCI reverb values (127) are properly handled now
- SCI kDoSound(reverb) sets the global reverb (renamed it accordingly)
- kDoSound(reverb) can also return the current reverb if no parameter is sent

svn-id: r54457
2010-11-24 14:21:31 +00:00
Filippos Karapetis 642d15e43f SCI: Added a getReverb() accessor to the SciMusic class
svn-id: r54456
2010-11-24 14:15:46 +00:00
Filippos Karapetis 7fc171e3bc SCI: Some slight changes to get the "find_callk" console command working in KQ5
- Ignore invalid object in KQ5 script 784
- Script 980 looks to be an unused leftover, as its object contain references to
classes placed in script 988, which is missing

svn-id: r54455
2010-11-24 11:57:11 +00:00
Filippos Karapetis 332a438ccf SCI: Added a TODO for the default reverb value
svn-id: r54454
2010-11-24 11:26:48 +00:00
Filippos Karapetis fcd8a04c64 SCI: Read MT-32 reverb data correctly (patch #3117434)
svn-id: r54453
2010-11-24 11:19:27 +00:00
Max Horn fbd1ae7eb6 LOG: Reset _startOfLine when opening a new log file
svn-id: r54452
2010-11-24 09:39:47 +00:00
Johannes Schickel d93698fc1c BACKENDS: Add a basic logger implementation.
This is the logger I posted at our patch tracker. Item #3115757
"OSYSTEM: Basic logger". It includes the changes proposed by Max.

It is currently not hooked into any backend, since we still need to decide
where to log files, whether to have multiple log files etc.

svn-id: r54451
2010-11-24 00:08:26 +00:00
Thierry Crozat 64f959ea0e I18N: Updating French, Portuguese and Hungarian translations.
All other translation files are also updated from the template file but without
change in the translations.

svn-id: r54450
2010-11-23 22:49:45 +00:00
Thierry Crozat f20da5f98c I18N: Add translation of the SCUMM help dialog.
svn-id: r54449
2010-11-23 22:47:20 +00:00
Filippos Karapetis d66c43eb5e SCI: added a workaround for script bug #3116892 - "SQ4 German: crash when shooting with laser", by applying the one for the English version
svn-id: r54447
2010-11-23 22:42:03 +00:00
Max Horn a914b97559 TINSEL: Fix support for file names with a trailing dot
When copying data files with 8.3 names from a CD, they sometimes end up
with a trailing dot, e.g. "INDEX." instead of "INDEX". Comon::File
supports this, but in r54392 Tinsel stopped using Common::File.

This commit also removes the useless SeekableSubReadStream wrapper
around the actual file stream.

svn-id: r54446
2010-11-23 22:33:26 +00:00
Max Horn 1cc80de1d9 COMMON: Add SeekableReadStreamEndian class
svn-id: r54445
2010-11-23 22:33:10 +00:00
Max Horn be822d8bc2 MOHAWK: Pass Common::Strings directly to SaveFileManager, instead of first converting to a C string
svn-id: r54444
2010-11-23 22:32:55 +00:00
Max Horn 121056c12f MOHAWK: Pass objs by const ref not by value
svn-id: r54443
2010-11-23 22:32:39 +00:00
Max Horn 830c39a687 SWORD2: Reduce dependencies on common/memstream.h
svn-id: r54442
2010-11-23 22:27:40 +00:00
Max Horn 12d5151ff4 COMMON: Remove default value for endianess in ReadStreamEndian subclasses
svn-id: r54441
2010-11-23 22:27:20 +00:00
Max Horn 5d791cb090 TEST: Add/extend MemoryReadStream(Endian) test cases
svn-id: r54440
2010-11-23 22:27:00 +00:00
Max Horn b485d0ee49 TINSEL: Turn TinselFile into a SeekableReadStream
svn-id: r54439
2010-11-23 22:26:43 +00:00
Max Horn 382982d6e3 COMMON: Add ReadStreamEndian mixin class
svn-id: r54438
2010-11-23 22:26:27 +00:00
Max Horn c9fdaa7417 TINSEL: Restrict use of memstream.h & substream.h
svn-id: r54437
2010-11-23 22:26:09 +00:00
Max Horn ae919f3ebd COMMON: Remove XOR decoding capability from MemoryReadStream
svn-id: r54436
2010-11-23 22:25:53 +00:00
Max Horn 09ba53dcfb SCUMM: Use explicit XOR decoding code in BaseScummFile subclasses
This made it possible to turn some MemoryReadStream pointers into plain
SeekableReadStream pointers.

svn-id: r54435
2010-11-23 22:25:36 +00:00
Max Horn 54e0390752 SCUMM: Replace Common::File uses by SeekableReadStream and SearchMan
svn-id: r54434
2010-11-23 22:25:10 +00:00
Thierry Crozat 55e3ed0016 I18N: Fix generation of translation template file from source code
This fix a regression introduced when GuiManager.cpp was renamed into
gui-manager.cpp

svn-id: r54433
2010-11-23 21:37:26 +00:00
Matthew Hoops 90cabfef38 MOHAWK: Find the small marble images by string; should fix German version
svn-id: r54431
2010-11-23 18:29:45 +00:00
Matthew Hoops 799757132f MOHAWK: Remove the no longer needed RLE8 hack
svn-id: r54430
2010-11-23 18:15:45 +00:00
Filippos Karapetis d438b739cf SCI: Also send a sustain off on a notes off event (patch from bug #3116608)
svn-id: r54429
2010-11-23 16:03:30 +00:00
Filippos Karapetis 23bd8a1c26 SCI: Ignore polyphonic/channel aftertouch (0xa0 / 0xd0) in the MIDI driver, like in the Adlib driver. SSCI doesn't handle these, so we shouldn't handle them either
svn-id: r54428
2010-11-23 15:47:54 +00:00
Filippos Karapetis c140e43a35 SCI: Added entries for the GOG versions of Phantasmagoria 1 and 2 (patch #3112884)
svn-id: r54427
2010-11-23 12:07:21 +00:00
Julien Templier b6d97e492c TOOLS: Update create_project makefile
svn-id: r54426
2010-11-23 11:54:20 +00:00
Julien Templier 500ae85c86 TOOLS: Add missing files for create_project
svn-id: r54425
2010-11-23 11:47:52 +00:00
Julien Templier 3cb5c64477 TOOLS: Move MSBuild and Visual Studio project providers to separate files
- Add option --build-events to run custom pre/post build events as part
   of the build (defaults to false and VS2010 only ATM)
 - Only run build events as part of VS2010 build with all engines enabled
   (ie. dev build)

svn-id: r54424
2010-11-23 11:22:31 +00:00
Julien Templier 569ad6caba TOOLS: Extract revision from svn/hg/git at build time in Visual Studio
- Simplify custom file output (for VS2010)
 - Fix postbuild.cmd error output

svn-id: r54423
2010-11-23 11:14:17 +00:00
Arnaud Boutonné 7711cc57d6 HUGO: Rewrite saveObjects() and restoreObjects()
This fixes (at least for me) save and restore. saveEvents() 
and restoreEvents() still have to be rewritten.

svn-id: r54422
2010-11-22 22:49:24 +00:00
Arnaud Boutonné 8bb43361cb HUGO: Suppress useless enums, cleanup
svn-id: r54421
2010-11-22 19:50:57 +00:00
Filippos Karapetis fe17f26af8 SCI: Added support for the keypad +/- keys
svn-id: r54420
2010-11-22 18:39:06 +00:00
Matthew Hoops 26bf0e8176 MOHAWK: Fix a typo fail (thanks, fuzzie)
svn-id: r54419
2010-11-22 18:09:31 +00:00
Matthew Hoops cb843daec0 MOHAWK: Have MohawkResource::open() return a bool for success/failure
svn-id: r54418
2010-11-22 18:07:33 +00:00
Matthew Hoops 9d4827b5e1 MOHAWK: Fix gspit dome from always opening
svn-id: r54417
2010-11-22 17:51:54 +00:00
Matthew Hoops cc6c7e33bf MOHAWK: Switch slider bitmap ID's to matching via string; fixes some versions
svn-id: r54416
2010-11-22 17:50:30 +00:00
Filippos Karapetis eba5c441b2 SCI: Fixed bug #3044050 - "SQ4FLOPPY: Crash while flying in Skate-o-Rama"
Fixed Object::locateVarSelector() for SCI0-SCI1 games, as it wasn't checking the
class for object variables

svn-id: r54415
2010-11-22 10:23:53 +00:00
Filippos Karapetis d8afddac63 SCI: Patched the QFG3 character import screen the same way as with QFG2
This prevents random crashes and slow refreshing, same as with QFG2

svn-id: r54414
2010-11-22 00:20:00 +00:00
Filippos Karapetis 0b06a1fe7b SCI: Proper fix for the QFG2 character import screen crashes (bug #3037996)
Script 944 does constant reallocations whenever the selection changes,
which leads to all sorts of unpredictable crashes. Thanks to waltervn for
his help on this issue

svn-id: r54413
2010-11-21 23:43:14 +00:00
Thierry Crozat 44669ac54d I18N: Backport add Brazilian Portuguese translation
svn-id: r54412
2010-11-21 22:16:02 +00:00
Thierry Crozat 8c0160cca6 I18N: Add Brazilian Portuguese (from patch #3114669)
svn-id: r54411
2010-11-21 22:12:31 +00:00
David Turner a00668331c QUEEN: Correct uninitialised read in Queen Adlib driver found by Valgrind.
svn-id: r54410
2010-11-21 18:42:00 +00:00
Johannes Schickel 3d83667504 CRUISE: Slight formatting fix.
svn-id: r54409
2010-11-21 12:51:49 +00:00