RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    mame-libretro configs keep getting overwritten

    Scheduled Pinned Locked Moved Help and Support
    ipac4ipac 4libretrokey bindings
    5 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      srfin
      last edited by

      I'm having a lot of trouble getting Mame working with my ipac 4 setup.

      I've mapped all 4 players to the correct keys in configs/all/retroarch.cfg (accessed via samba), and that seems OK in NES and SNES, but not for MAME.

      I edited configs/mame-libretro/retroarch.cfg, but those settings get overwritten whenever I restart the system. I just did a simple test case. I changed 'input_shader_next' from "m" to "nul" since that is a conflict I need to remove. I saved and closed the file and then reopened it and saw the change was still there. I then rebooted and the change had been reverted.

      Is this file being re-written based on some other config? How do I prevent that?

      1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde
        last edited by

        My /opt/retropie/configs/mame-libretro/retroarch.cfg isn't overwritten at a reboot, its timestamp still is Nov 25th. Which version is your RetroPie? Maybe you installed something that does this?

        A somewhat dirty hack would be to set the file to read-only using the command chmod u-w /opt/retropie/configs/mame-libretro/retroarch.cfg, but it would be better if we found out what causes the rewrite of the file.

        1 Reply Last reply Reply Quote 0
        • S
          srfin
          last edited by

          The main menu says EmulationStation 2.7.3RP. I downloaded retropie earlier this week and then did a full update of the packages (maybe that was a mistake?).

          I watched the config file change, and it looks it was written when I exited MAME.

          1 Reply Last reply Reply Quote 0
          • ClydeC
            Clyde
            last edited by

            Which version of MAME do you use? See https://github.com/RetroPie/RetroPie-Setup/wiki/MAME for the different versions. I'm using mame2003 which is the preconfigured one in the RetroPie image.

            Normally, you could monitor changes to a file using the tool "auditd", but as I just found out by testing it, the Linux kernel of RetroPie hasn't been built with audit support. :(

            1 Reply Last reply Reply Quote 0
            • S
              srfin
              last edited by

              yeah, its the preconfigured mame2003. It does seem that the read-only hack will work, so I guess I'll go with that.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.