Close and open game automatically?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Xugro
Party member
Posts: 110
Joined: Wed Sep 29, 2010 8:14 pm

Re: Close and open game automatically?

Post by Xugro »

bartbes wrote:(Especially since lua doesn't do deep copies, so you saving the environment equates to exactly nothing, to put it bluntly.)
Sorry, I always forget that. Would it work with a deep-copy of _G?
User avatar
OmarShehata
Party member
Posts: 259
Joined: Tue May 29, 2012 6:46 pm
Location: Egypt
Contact:

Re: Close and open game automatically?

Post by OmarShehata »

bartbes wrote:Run it via a batch script like:

Code: Select all

:loop
love.exe allthegames.love
goto loop
Then just quit the game and it should restart.
That works perfectly. Thank you!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 201 guests