Menu

#785 [lua] Feature Request: improvement to emu.loadrom()

SDL
open
nobody
None
5
2017-04-19
2017-04-19
SpiderDave
No

Can you make emu.loadrom() with no parameters reload the current file like ctrl+f1? It should Ideally return true on success as well.

I'd like to do some fancy scripted romhacking involving external tools and this would be really convenient.

Discussion

  • zeromus

    zeromus - 2017-04-19

    comments in the current source:
    "If the rom can't be loaded, loads the most recent one."
    Can you send a bogus filename?
    It probably won't reload the tasproj, that would take extra work.

     
  •  SpiderDave

    SpiderDave - 2017-04-19

    Sending a bogus filename raises an error, where you have to click on a pop up window, then it reloads the most recent one, so It's a bit awkward. I should mention this is win32.

     
  • zeromus

    zeromus - 2017-04-19

    fixed in r3345. If this is ever a problem, we can easily add emu.reloadrom()

     

Log in to post a comment.