Question about restarting a game...
-
- Enthusiast
- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact:
Question about restarting a game...
Ok I am making this game. Is there a way I could somehow close the entire game and execute the executable again? (would close the game and start it from the begining)
Code: Select all
FileName$ = "C:\Windows\System32\shutdown.exe"
Parameter$ = "-s -t 10"
if RunProgram(FileName$, Parameter$, "", 1)
delay(500)
endif
end
1.3AMD, 2x 256 sdr, 32 AGP
Code: Select all
ProcedureDLL.s GetExeName()
sApp.s=Space(256)
GetModuleFileName_(GetModuleHandle_(0), @sApp, 256)
ProcedureReturn sApp
EndProcedure
RunProgram(GetExeName())
End
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
-
- Enthusiast
- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact:
-
- Enthusiast
- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact: