Am Samstag, 17. März 2007 schrieb [EMAIL PROTECTED]: > Here is patch. Works on windows. Going to reset to linux to test. > Should work now for both. > > I added resetConfig() routine, but I am not sure of default case > should be? I wonder how this patch can fix the problem...
main() calls loadConfig() which calls openWarzoneKey() which calls registry_load() if that was not done before. The return value of registry_load() is discarded. After that loadConfig proceeds with initializing game with the values from the config file or the default values. At the end it calls closeWarzoneKey() which calls registry_save() So actually it should not depend on the config file being present and create it when it doesn't exist... --Dennis
pgpBnwGAzqJ6Z.pgp
Description: PGP signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
