1. Anders Ruud
  2. love

Issues

Issue #552 wontfix

Menu option to reload + New love.event to push: reload

Johan Basberg
created an issue

Hey,

Maybe I'm missing something, but I can't find a convenient way to make löve2d reload my script without having to be restarted - no matter the condition of löve2d - in OS X.

If there is no such way, then I would suggest:

Adding a menu option that say "Reload" or "Restart", maybe even with a shortcut.

Adding "reload" or "restart" as a valid event to push, so I can set e.g. ESC-press to love.event.push("reload") the script - basically do a restart.

Thanks

Comments (1)

  1. Bart van Strien

    Unfortunately this is non-trivial, and can best be done on a case-by-case basis, generally speaking though, if the game's properly coded calling love.load again (perhaps followed or preceded by love.event.clear) should "restart".

    As for menu options, you are obviously an OSX user, since love doesn't have a menu bar anywhere else.

    Regarding the event, I might as well point out that any event can be pushed, and any error that may occur because of it is simply because there is no handler for it (see love.run).

  2. Log in to comment