Skip to content
Snippets Groups Projects
Commit 7ec75091 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

For SBBSecho to use text.dat strings, it needs load_cfg() to support it

Thanks to Dan_C for the head's up that SBBSecho stopped (very recently) successfully sending notices to users about received netmail or echomail.
parent 2fc607f0
Branches
Tags
No related merge requests found
......@@ -43,11 +43,9 @@ char * readtext(long *line, FILE *stream, long dflt);
BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error, size_t maxerrlen)
{
int i;
#ifdef SBBS
long line=0L;
FILE *instream;
char str[256];
#endif
if(cfg->size!=sizeof(scfg_t)) {
safe_snprintf(error, maxerrlen,"cfg->size (%"PRIu32") != sizeof(scfg_t) (%" XP_PRIsize_t "d)"
......@@ -86,7 +84,6 @@ BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error,
if(read_attr_cfg(cfg, error, maxerrlen)==FALSE)
return(FALSE);
#ifdef SBBS
if(text!=NULL) {
/* Free existing text if allocated */
......@@ -112,7 +109,6 @@ BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error,
}
cfg->text = text;
}
#endif
/* Override com-port settings */
cfg->com_base=0xf; /* All nodes use FOSSIL */
......
......@@ -103,9 +103,11 @@
<ClCompile Include="ars.c" />
<ClCompile Include="load_cfg.c" />
<ClCompile Include="nopen.c" />
<ClCompile Include="readtext.c" />
<ClCompile Include="scfglib1.c" />
<ClCompile Include="scfglib2.c" />
<ClCompile Include="str_util.c" />
<ClCompile Include="text_defaults.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment