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