General discussion about LÖVE, Lua, game development, puns, and unicorns.
raidho36
Party member
Posts: 2063 Joined: Mon Jun 17, 2013 12:00 pm
Post
by raidho36 » Thu Jul 04, 2013 12:18 pm
Oh, that. I didn't knew about this feature particularry.
I looked it up. You can remove the module from cache using this syntax:
Then, re-requiring it again actually reloads it.
Plu
Inner party member
Posts: 722 Joined: Fri Mar 15, 2013 9:36 pm
Post
by Plu » Thu Jul 04, 2013 12:21 pm
That sounds like a good trick, then.
Robin
The Omniscient
Posts: 6506 Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:
Post
by Robin » Thu Jul 04, 2013 12:50 pm
I recommend using love.filesystem.load over require and resetting its package.loaded field each time beforehand, otherwise you might end up confusing yourself.
Users browsing this forum: Ahrefs [Bot] and 4 guests