[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Bug when opening from file icon a match saved in .sgf

From: Holger
Subject: Re: [Bug-gnubg] Bug when opening from file icon a match saved in .sgf
Date: Mon, 13 Oct 2003 19:15:11 +0200

At 18:18 13.10.2003, Joern Thyssen wrote:
On Mon, Oct 13, 2003 at 11:46:24AM +0100, Jon Kinsey wrote
> >
> >I'd opt for the registry, unless it's possible by the installer to add
> >the environment variable to the list of system env. variables.
> >
> >It shouldn't be that difficult to query the registry (or am I just being
> >naïve)?
> Here's some sample code to read the value from the registry (I think this
> works with 95):


I've committed code, so gnubg should initialise the data directory to
the install directory.

Can anyone of the windows-builders check if the code compiles and

It compiles and also works depending on how you define it. First of all getInstallDir() returned arbitrary memory if the key wasn't found. Fixed by initialising it to NULL. And finally it simply depends on whether the installer sets HKLM\SOFTWARE\gnubg\Install_dir. Even if Oystein's current install package sets it, earlier packages probably didn't, so the key is missing. At least here on this machine it doesn't exist. If we want to introduce this key maybe we should take: "HKLM\SOFTWARE\GNU Backgammon"?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]