Gabriel Knight 2 subtitles patch
Copyright (C) 2007  Daniel Borca   All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to use, copy, modify, merge, publish, distribute and/or sublicense copies
of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
DANIEL BORCA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Hello there fellow adventurer,

Here is a trick to turn on the English subtitles in Gabriel Knight 2.
I found about it from 'fov' while browsing adventuregamers forum.  The given
solution was to invalidate "resAud" path in RESOURCE.CFG.  Unfortunately,
this has the nasty side-effect of disabling speech.  The subtitles are
quite ugly, and do not work for movies, but nevertheless, they are there.

I needed them badly, since I am not an english-native speaker, and I really
like to read while playing.  But I also like to hear speech.

So I figured, how about tricking the game engine into thinking the audio
resources are not available, but doing it so very late in the execution
flow, that the audio sample is already playing?

It worked, and here is the DOS-only patch.  I have no intention to provide
the Windows patch, because I'm a Linux guy running DOSBox; but the brave
can always look into my sourcecode and try to replicate the behavior.

The downside is that it will modify SIERRA.EXE.  The bright side is that it
will not modify any datafile.  In other words, your saves should work without
a problem.

Installation instructions:
1. copy gk2supat.exe into game directory (where SIERRA.EXE is)
2. start DOSBox and change to the game directory (say C:\SIERRA\GK2DOS)
3. run following command: "gk2supat.exe -b SIERRA.BAK".

It will make a backup of original file in SIERRA.BAK and then apply patch.
Once applied, the game will always display the subtitles.  There is no
in-game options to get rid of them.  In order to disable the subtitles,
you need your original SIERRA.EXE.  Remember `-b SIERRA.BAK' in the command
above?  Just copy SIERRA.BAK over now-patched SIERRA.EXE and the subtitles
are gone.  If you are worried that you lost SIERRA.BAK, you can simply undo
the patch with "gk2supat.exe -u".

There are three versions of the patch, so if you experience problems of any
kind, try to repatch it using different method:
"gk2supat.exe -p1 -b SIERRA.BAK" (same as without -pN)
"gk2supat.exe -p2 -b SIERRA.BAK"
"gk2supat.exe -p3 -b SIERRA.BAK"
Remember, the backup will always be a byte-by-byte identical copy of your
original SIERRA.EXE, regardless of how many times you apply the patch.

"gk2supat.exe -h" will give the complete listing of command-line options.

For the tech people wondering why are there three versions of the patch:
SIERRA.EXE was compiled with Watcom, thus being a LE-executable.  The LE
format is a position-independent-executable format.  This means that all
memory references have their fixups.  Since I didn't want to modify the
LE-header, I tried to achieve my result without altering current memory
references.  Each version of this patch makes some assumptions (they are
noted in gk2supat.c).  I have no intention to fully analyze SIERRA.EXE
for side-effects, so it was simpler to provide three ways to do it.  For
more info, read the sourcecode and the included .LST files.

Have fun!

Daniel Borca, Jan 2007
<dborca 'at' yahoo 'dot' com>
