1092 Commits

Author SHA1 Message Date
Eugene Sandulenko
29154f1f20 SAGA: FUrther fix to potential buffer overflow 2016-06-07 22:23:23 +02:00
Eugene Sandulenko
459be5e7b2 SAGA: Fix potential buffer overrun 2016-05-31 17:12:18 +02:00
Eugene Sandulenko
678c5eadfa SAGA: Safer string manipulation 2016-05-31 17:12:18 +02:00
Filippos Karapetis
ba930cf65e SAGA: Remove curly brackets from some 1-line if statements 2016-05-22 16:28:41 +03:00
Eugene Sandulenko
33abb6118f ALL: Change main engine header guard defines to <directory>_<engine>_H
Recently we started to use this as new semantics, although in the past
we used simly <engine>_H. Now these guard defines are consistent with
rest of the files which are used in the engines.
2016-05-17 18:21:30 +02:00
Eugene Sandulenko
1d5a127011 SAGA: Add safeguard warning for text access. 2016-05-16 16:56:57 +02:00
Eugene Sandulenko
c341738ab8 SAGA: Fix potential buffer overrun.
If we have _statusTextInputPos as 256, we're doing incrementing to 257
and storing 0 there. This will lead to memory overwrite.
2016-05-16 16:56:57 +02:00
Eugene Sandulenko
0f6d2b86de SAGA: Initialization for IsoMap 2016-05-05 09:39:20 +02:00
Eugene Sandulenko
d576abb3a2 SAGA: Init puzzle properly 2016-05-05 09:26:08 +02:00
Eugene Sandulenko
9acf733d81 SAGA: Safer string copying 2016-05-05 09:23:09 +02:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Eugene Sandulenko
674a208a7e SAGA: Move IHNM color fix game features to proper spot. 2016-03-28 15:47:56 +02:00
Eugene Sandulenko
960d14d79d SAGA: Explicitely mark versions which require color shifting in interface. Fixes bug #7092 2016-03-28 00:54:05 +02:00
Torbjörn Andersson
c5b8adb370 SAGA: Fix dialog text positions in non-English version (#7064)
This fix applies to drawPanelText(), where we used to hard-code
the text positions. Now we define the dimensions of the area where
the text is drawn (like we do for button texts) and calculate the
position based on the dimensions of the text string.

The drawPanelText() function is used for the Save, Quit, Protect
and Option dialogs, but for everything except the Option dialog it
already centered the text to the dialog. I decided to use this
centering mechanism for the title of the ITE Option dialog, even
though that changes the X coordinate by one pixel. Other than that,
it only affects the following texts:

ITE:  Show Dialog / Reading Speed, Music and Sound
IHNM: Reading Speed, Music, Sound, Voices

I have verified that this looks at least ok for the English and
German versions of ITE, and the English, German, French and
Spanish versions of IHNM, so I'm reasonably confident that this
change is ok.
2016-03-27 15:23:17 +02:00
Eugene Sandulenko
dec810647e SAGA: Added German fan-translated IHNM detection. Bug #7091 2016-03-27 12:33:47 +02:00
Torbjörn Andersson
0a5a722b02 SAGA: Fix interface colors in French and German versions of IHNM
The same fix that had already been applied to the Spanish version
also applies to the French and German versions. (Judging by the
detection entries, there aren't any alternative versions so the
ones I got from GOG should be representative.)

The palettes aren't quite identical to the Spanish one, but I
think the remaining difference is for the spiritual barometer, so
the special case for that remains Spanish-only.
2016-03-16 06:16:44 +01:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Eugene Sandulenko
23d74fddb4 CONFIGURE: Introduced new engine dependency: highres
Some backends like GCW0 do no support graphics >320x240 due to
the hardware limitation (downscaling is possible but it will ruin
the pixel hunting which is often part of the gameplay).

Instead of manually updating the list of engines, we now introduce
a new dependency.

I marked all relevant engines, but some, like tinsel, require more
work with putting their relevant high-res games under USE_HIGHRES
define.
2016-03-05 14:25:56 +01:00
Johannes Schickel
ce8998760d SAGA: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
01020089da SAGA: Add comments about possibly race conditions to timer callbacks.
(cherry picked from commit 93f627441ac68e7a4c3e7f748a7b6f999bd9c96a)
2016-02-09 02:52:29 +01:00
Johannes Schickel
fee5944fe2 SAGA: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Eugene Sandulenko
ceee1713f5 SAGA: Add support for Russian fan-translation of IHNM
Released about 2 years ago and is translating the subtitles
in contrast to the version released on CD which has only
poorly done voice-overs.
2016-01-10 09:21:03 +01:00
Filippos Karapetis
5b7dc80a64 SAGA: Fix typo in commit 6a49654 2015-07-13 02:29:07 +03:00
Filippos Karapetis
6a49654d86 SAGA: Fall back to the default Adlib driver for non-DOS versions of ITE
Only the DOS version of ITE uses the Miles audio driver
2015-07-13 02:21:51 +03:00
Filippos Karapetis
6546882b4f SAGA: Avoid crash if the engine errors out before full initialization
This may happen for example if the Miles Adlib driver errors out
because of missing instrument data files (*.AD)
2015-07-10 13:07:09 +03:00
Filippos Karapetis
ccfe3bc313 SAGA: Add another German version of ITE - bug #6428
This is the German Windows/Mac version distributed by GoG
2015-07-08 02:21:04 +03:00
Filippos Karapetis
a95d22a2cd SAGA: Initial work on the DOS ITE demo 2015-07-04 01:51:45 +03:00
Filippos Karapetis
5311191687 SAGA: Add support for the scene descriptors of the ITE DOS demo 2015-07-04 01:51:45 +03:00
Kirben
1d204c752f SAGA: Fix Adlib in original DOS CD version of Inherit the Earth. 2015-07-03 09:39:30 +10:00
Filippos Karapetis
144aa6483b SAGA: Search for sample.ad/sample.opl in the drivers directory for IHNM 2015-06-29 03:07:47 +03:00
Torbjörn Andersson
7615f926d5 SAGA: Tweak music timing in IHNM intro
This wasn't a regression. The music has always been cut off at an
awkward point.
2015-06-28 16:38:47 +02:00
Torbjörn Andersson
a1929c6887 SAGA: Use the new "Miles" drivers for AdLib and MT-32
Note that this breaks the IHNM demo, as provided on the ScummVM web
page, since it doesn't have the sample.ad and sample.opl files
needed, but I have a feeling that this is a packaging error on
our part.

I don't have the original release of ITE, so I can't test that.
2015-06-28 16:08:49 +02:00
Matthew Hoops
b6fdc7be88 AUDIO: Make makeAIFFStream return a RewindableAudioStream
All callers requiring SeekableAudioStream have been adapted by using dynamic_cast
2015-06-06 17:20:41 -04:00
Willem Jan Palenstijn
8919a8e841 SAGA: Avoid code duplication 2015-05-14 16:55:10 +02:00
Filippos Karapetis
2e8e85310d SAGA: Only handle the puzzle scene for ITE 2015-05-12 00:32:57 +03:00
Filippos Karapetis
6bdb362370 SAGA: Remove trailing whitespace 2014-10-28 16:16:12 +02:00
Filippos Karapetis
2a6a79b167 SAGA: Remove the buggy actor swapping fixup code for IHNM
This was a hack that was implemented while IHNM was being developed.
That code should no longer be needed. If this issue does occur again,
the actual cause should be investigated, instead of hiding it with
workarounds. The code was buggy anyway, as _currentProtag was not
initialized properly
2014-10-27 12:28:18 +02:00
Matthew Hoops
8e0e03c8ba SAGA: Silence a gcc warning 2014-09-28 15:29:49 -04:00
Filippos Karapetis
ea2ee4ada7 SAGA: Fix OOB access in the Shorten decoder
The changes are based on the Java implementation of the Shorten decoder.
This avoids all the out of bounds access (negative array indices), but
it still doesn't fully fix the actual decoder
2014-08-06 15:12:07 +03:00
Filippos Karapetis
e88d6265d8 SAGA: Add support for MIDI music in SAGA2 games 2014-07-20 21:19:20 +03:00
Filippos Karapetis
0d926f9aaf SAGA: Cleanup 2014-07-20 21:18:40 +03:00
Filippos Karapetis
d8508a5128 SAGA: Add debug commands for playing music, sounds and voices 2014-07-20 18:49:57 +03:00
Filippos Karapetis
d316b00b9e SAGA: Some renaming 2014-07-20 17:46:06 +03:00
Filippos Karapetis
7bab457a23 SAGA: Remove the now unneeded individual cave scene handlers 2014-07-20 17:17:00 +03:00
Filippos Karapetis
bb353d14fd SAGA: Merge all of the ITE intro cave scene handlers 2014-07-20 17:10:56 +03:00
Filippos Karapetis
7c19effd36 SAGA: Move ITE credits together with the other ITE static data 2014-07-20 17:10:56 +03:00
Filippos Karapetis
e5b10aba57 SAGA: Move the ITE intro text together with the other static ITE data 2014-07-20 17:10:56 +03:00
Filippos Karapetis
e663395435 SAGA: Add wrappers for queuing music events 2014-07-20 17:10:55 +03:00
Filippos Karapetis
b14a2599bc SAGA: Get rid of the MUSIC_DEFAULT flag 2014-07-20 17:10:55 +03:00
Filippos Karapetis
96dfeab1e5 SAGA: Fix spacing 2014-07-20 17:10:55 +03:00