Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 255f23fe authored by rswindell's avatar rswindell

Create a "running" named mutex (on Win32 only) for use by Inno Setup install

program to detect a currently running instance of sbbsctrl.exe.
parent 7903c489
......@@ -6,7 +6,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2014 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -92,6 +92,7 @@ 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, NULL /* auto-hostname */);
CreateMutex(NULL, FALSE, "sbbsctrl_running"); /* For use by Inno Setup */
Application->Run();
}
catch (Exception &exception)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment