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

If passed a filename on the command-line, use as the sbbs.ini file

To be consistent with how sbbs[.exe] works
parent 325334cc
No related branches found
No related tags found
No related merge requests found
Pipeline #8756 passed
......@@ -94,6 +94,8 @@ WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR cmd, int)
if(cmd[0] && isdir(cmd))
SAFECOPY(MainForm->global.ctrl_dir,cmd);
sbbs_get_ini_fname(MainForm->ini_file, MainForm->global.ctrl_dir);
if(cmd[0] && fexist(cmd))
SAFECOPY(MainForm->ini_file, cmd);
CreateMutex(NULL, FALSE, "sbbsctrl_running"); /* For use by Inno Setup */
Application->Run();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment