UI: Warn user if multiple instances of the UI are open

Uses a named mutex to detect if multiple instances of the program are
open, and if so warns the user.  When running in portable mode, uses a
separate unique mutex name mapped to the user's config directory to
ensure that no two portable builds use the same config directory.  This
way, portable builds do not conflict with normal builds or other
separate portable builds.
This commit is contained in:
jp9000
2017-05-14 15:25:34 -07:00
parent 99f5ae3059
commit 96ce9633e0
5 changed files with 126 additions and 1 deletions

View File

@@ -176,6 +176,7 @@ static inline int GetProfilePath(char *path, size_t size, const char *file)
return window->GetProfilePath(path, size, file);
}
extern bool portable_mode;
extern bool opt_start_streaming;
extern bool opt_start_recording;
extern bool opt_start_replaybuffer;