RE: Restarting game exe

"Jon Watte" <[email protected]> Wed, 8 Sep 2004 14:44:48 -0700
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
Get your EXE path by getting the module path of your main module.

Then use CreateProcess() to create the new process, and ExitProcess() your
current process.

If you're looking for "exec()" then there might be emulation of that, but
the basic NT kernel primitive is somewhat different, so it won't be quite
what you'd be used to from UNIX.

Cheers,

			/ h+


-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of
George Geczy (BattleGoat) (E-mail)
Sent: Wednesday, September 08, 2004 2:28 PM
To: [email protected]
Subject: [GD-Windows] Restarting game exe


I thought this would be a really easy thing to do, but for some reason I
can't seem to trip on the right functions.  I want to give an option to
restart the game 'from the top' to re-initialize resolution, graphics etc,
so I thought I would just exit the app and re-launch the EXE.  But I can't
really see what would be the best way to do this.

Is there something that I'm missing as far as an 'exit and then start up
another exe' command, or what would be the best way to do this without
messing things up?

-- George.


- George Geczy
- Lead Programmer, BattleGoat Studios
- www.supremeruler2010.com
- "Designing the Next Generation of Intelligent Strategy Games"



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555