Replace "golded.cfg" with GEDCFG
This commit is contained in:
parent
0cce1be48c
commit
b417527631
@ -551,7 +551,7 @@ GoldedCfgEdit::GoldedCfgEdit() {
|
||||
CfgGed::CfgGed() {
|
||||
|
||||
// pathes
|
||||
strcpy(goldcfg, "golded.cfg");
|
||||
strcpy(goldcfg, GEDCFG);
|
||||
strcpy(helpcfg.fn, "goldhelp.cfg"); helpcfg.ft = 0;
|
||||
replaceextension(helpged, helpcfg.fn, __gver_cfgext__);
|
||||
strcpy(keyscfg, "goldkeys.cfg");
|
||||
|
@ -455,13 +455,6 @@ static bool FindCfg(char* path) {
|
||||
return false;
|
||||
}
|
||||
AddBackslash(path);
|
||||
#if 0
|
||||
#if defined(__OS2__)
|
||||
found = ExistCfg(path, "ged2.cfg");
|
||||
#elif defined(__WIN32__)
|
||||
found = ExistCfg(path, "gedw32.cfg");
|
||||
#endif
|
||||
#endif
|
||||
#ifdef GEDCFG2
|
||||
found = ExistCfg(path, GEDCFG2);
|
||||
#endif
|
||||
@ -637,14 +630,14 @@ void Initialize(int argc, char* argv[]) {
|
||||
found = FindCfg(cmdlinecfg);
|
||||
}
|
||||
|
||||
// Get it where the the .EXE file is
|
||||
// Get it where the the binary file is
|
||||
if(not found) {
|
||||
extractdirname(cmdlinecfg, argv[0]);
|
||||
found = FindCfg(cmdlinecfg);
|
||||
|
||||
// If we still could not find config name...
|
||||
if(not found)
|
||||
strcat(cmdlinecfg, "golded.cfg");
|
||||
strcat(cmdlinecfg, GEDCFG);
|
||||
}
|
||||
}
|
||||
extractdirname(CFG->goldpath, cmdlinecfg);
|
||||
|
Reference in New Issue
Block a user