[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Preventing multiple instances of your game from running (and activating the running copy?)
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Preventing multiple instances of your game from running (and activating the running copy?)
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 4 Aug 2006 18:26:31 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 04 Aug 2006 21:26:39 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=PpWOsDjFBaKWC84m6UXRQ9O/1RRKvL7xVDIjFUd5r/NTGX0iFTEsPLhy9dTv1Wkjb01zZDvmh5H587aL4jlJ4uRoVJ28jF4mRyrS1/2TnZeKoOpPIdBhDFkxevFhScUJcdB3u0GuXq7hxrIKYgZOD/LeOSTyVzwhTxBfbmvjNxk=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hey all,
I want to write some code to make my pygame apps prevent multiple
instances from running, and if possible (although I doubt it is...)
make the currently running copy of the game activated if another
instance gets run.
Also, I want to use some method that works great cross-platform, and I
don't want to use any method that could break with a crashed app (like
marker files or whatever... I mention this cause the 2 samples I found
in google were using mutex's with win32 extensions and using a marker
file)
So do you guys have a feature like that in your games? What approach
do you guys take?