Hi Lars,

> Another thing is that the GetCWD kernel call should be modified to
> actually return the cwd, the reason being that HBoG2 searches for its
> files there. The only other workaround I can think of is to copy
> hoylesol.* to $home/.freesci/hoyle2 before running the game.

Actually, that's the only way to do things, as we mustn't assume that the
resource file directory is writeable. There are three possible ways to
handle this in the interpreter (not manually):
a) Copy all files from the game directory to ~/.freesci/whatever, except
for recognized resource and patch files, and other files that we know to
belong to SCI games (*.drv, resource.map, resource.ini, savegame.*,
sciv.exe, sierra.com, etc.)
b) Copy-on-read: If opening a file fails, look for it in the game
directory and copy it into ~/.freesci/gamedir.
c) Copy-on-write: As b), but copy only if appending (or, maybe for SCI01,
seeking and writing) was requested. Make sure always to read from the
user's game directory first and to fall back to the resource dir.

c) seems like the best way to handle this.

llap,
 Christoph


Reply via email to