Define macroses GOLDAREA_INC, GOLDED_MSG, GOLDHELP_CFG, GOLDKEYS_CFG, GOLDLANG_CFG, GOLDLAST_LST, GOLDUSER_LST, GOLDED_CFM, GOLDXLAT, GOLDED_LOG,NAMES_FD, GOLDED_LST, FIDOLASTREAD
This commit is contained in:
parent
944ac26dac
commit
f5016e755d
@ -552,18 +552,18 @@ CfgGed::CfgGed() {
|
|||||||
|
|
||||||
// pathes
|
// pathes
|
||||||
strcpy(goldcfg, GEDCFG);
|
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);
|
||||||
strcpy(langcfg, "goldlang.cfg");
|
strcpy(langcfg, GOLDLANG_CFG);
|
||||||
strcpy(goldlast, "goldlast.lst");
|
strcpy(goldlast, GOLDLAST_LST);
|
||||||
strcpy(golduser, "golduser.lst");
|
strcpy(golduser, GOLDUSER_LST);
|
||||||
strcpy(confirmfile, "golded.cfm");
|
strcpy(confirmfile, GOLDED_CFM);
|
||||||
strxmerge(xlatged, sizeof(xlatged), "goldxlat", __gver_cfgext__, NULL);
|
strxmerge(xlatged, sizeof(xlatged), GOLDXLAT, __gver_cfgext__, NULL);
|
||||||
strcpy(fidolastread, "lastread");
|
strcpy(fidolastread, FIDOLASTREAD);
|
||||||
strcpy(logfile, "golded.log");
|
strcpy(logfile, GOLDED_LOG);
|
||||||
strcpy(namesfile, "names.fd");
|
strcpy(namesfile, NAMES_FD);
|
||||||
strcpy(userlistfile, "golded.lst");
|
strcpy(userlistfile, GOLDED_LST);
|
||||||
*adeptxbbspath = 0;
|
*adeptxbbspath = 0;
|
||||||
*areapath = 0;
|
*areapath = 0;
|
||||||
*attachpath = 0;
|
*attachpath = 0;
|
||||||
|
@ -52,4 +52,48 @@
|
|||||||
#define GOLDED_MSG "golded.msg"
|
#define GOLDED_MSG "golded.msg"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDHELP_CFG
|
||||||
|
#define GOLDHELP_CFG "goldhelp.cfg"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDKEYS_CFG
|
||||||
|
#define GOLDKEYS_CFG "goldkeys.cfg"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDLANG_CFG
|
||||||
|
#define GOLDLANG_CFG "goldlang.cfg"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDLAST_LST
|
||||||
|
#define GOLDLAST_LST "goldlast.lst"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDUSER_LST
|
||||||
|
#define GOLDUSER_LST "golduser.lst"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDED_CFM
|
||||||
|
#define GOLDED_CFM "golded.cfm"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDXLAT
|
||||||
|
#define GOLDXLAT "goldxlat"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDED_LOG
|
||||||
|
#define GOLDED_LOG "golded.log"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef NAMES_FD
|
||||||
|
#define NAMES_FD "names.fd"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GOLDED_LST
|
||||||
|
#define GOLDED_LST "golded.lst"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef FIDOLASTREAD
|
||||||
|
#define FIDOLASTREAD "lastread"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __GEFN_H__ */
|
#endif /* __GEFN_H__ */
|
||||||
|
@ -837,7 +837,7 @@ void Initialize(int argc, char* argv[]) {
|
|||||||
if(CFG->cmdkey.empty()) {
|
if(CFG->cmdkey.empty()) {
|
||||||
LOG.ErrConfig();
|
LOG.ErrConfig();
|
||||||
LOG.printf("! There do not seem to be any command keys defined.");
|
LOG.printf("! There do not seem to be any command keys defined.");
|
||||||
LOG.printf("+ Advice: Check your key setup in goldkeys.cfg.");
|
LOG.printf("+ Advice: Check your key setup in " GOLDKEYS_CFG );
|
||||||
ConfigErrorExit();
|
ConfigErrorExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user