...
 
Commits (2)
......@@ -46,9 +46,7 @@ build-sbbs-windows:
stage: build
script:
- cd src/sbbs3
- set SBBSCTRL=../../ctrl
- set SBBSEXEC=../../exec
- .\build.bat
- .\release.bat
artifacts:
name: sbbs
paths:
......
......@@ -167,7 +167,10 @@ int main(int argc, char **argv)
FILE *text_js;
FILE *text_defaults_c;
p = get_ctrl_dir(/* warn: */TRUE);
if(argc > 1)
p = argv[1];
else
p = get_ctrl_dir(/* warn: */TRUE);
SAFEPRINTF(path,"%s/text.dat",p);
if((text_dat=fopen(path,"r"))==NULL) {
perror(path);
......@@ -191,8 +194,12 @@ int main(int argc, char **argv)
fputs("\n",text_h);
fputs("enum {\n",text_h);
if((p=getenv("SBBSEXEC"))==NULL)
p="/sbbs/exec";
if(argc > 2)
p = argv[2];
else
p = getenv("SBBSEXEC");
if(p==NULL)
p = "/sbbs/exec";
sprintf(path,"%s/load/text.js",p);
if((text_js=fopen(path, "w"))==NULL) {
perror(path);
......
......@@ -151,7 +151,7 @@
</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>$(OutputPath)textgen</Command>
<Command>$(OutputPath)textgen ..\..\ctrl ..\..\exec</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
......