Skip to content

MAME debugger feature requests (don't lock file and reload ROM when changed) #10212

Open
@tbsp

Description

@tbsp

I'm looking into developing for the Bally Astrocade, using mame as my emulator/debugger. First I want to say thank you very much for emulating this system at all and all the hard work that goes into mame!

Unfortunately once a ROM is loaded the file is locked from writing, and the process to rebuild/reload a ROM has quite a few steps. This leads to the following build cycle:

  • Media menu -> Cartridge -> Unmount (to allow the ROM to be overwritten)
  • I rebuild my ROM via my build system
  • Media menu -> Cartridge -> Mount file...
  • Choose file
  • The window/debugger now reset to their default locations (and must be resized/re-positioned as desired)

In a perfect world this would be replaced with (with the ROM already loaded/running):

  • I rebuild my ROM via my build system
  • Mame detects the file changing (likely just via modified timestamp) and reloads it, retaining the windows in their present locations

I've looked around the code a bit, and it looks like the cartridge ROM file being locked could be because it's treated as a cassette, and potentially could be written to, so the file handle is kept open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions