mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Tweak how the semaphore used to detect multiple running copies of the game is utilized
git-svn-id: https://svn.eduke32.com/eduke32@7912 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4e0325e0d4
commit
40e54fdbbb
3 changed files with 13 additions and 3 deletions
|
@ -2,7 +2,11 @@
|
|||
|
||||
#include "compat.h"
|
||||
|
||||
#define WindowClass "buildapp"
|
||||
#ifdef APPNAME
|
||||
# define WindowClass APPNAME
|
||||
#else
|
||||
# define WindowClass "buildapp"
|
||||
#endif
|
||||
|
||||
extern int32_t backgroundidle; // set to 1 to tell winlayer to go to idle priority when inactive
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ static void win_printversion(void)
|
|||
int l;
|
||||
|
||||
if (pwinever)
|
||||
l = Bsprintf(str, "Wine %s identifying as Windows %s", (char *)pwinever(), ver);
|
||||
l = Bsprintf(str, "Wine %s, identifying as Windows %s", (char *)pwinever(), ver);
|
||||
else
|
||||
l = Bsprintf(str, "Windows %s", ver);
|
||||
|
||||
|
|
|
@ -6219,12 +6219,18 @@ int app_main(int argc, char const * const * argv)
|
|||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef DEBUGGINGAIDS
|
||||
if (!G_CheckCmdSwitch(argc, argv, "-noinstancechecking") && win_checkinstance())
|
||||
{
|
||||
#ifdef EDUKE32_STANDALONE
|
||||
if (!wm_ynbox(APPNAME, APPNAME " is already running. "
|
||||
#else
|
||||
if (!wm_ynbox(APPNAME, "Another Build game is currently running. "
|
||||
"Do you wish to continue starting this copy?"))
|
||||
#endif
|
||||
"Are you sure you want to start another copy?"))
|
||||
return 3;
|
||||
}
|
||||
#endif
|
||||
|
||||
backgroundidle = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue