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

    What's the relationship between a ROM file and its gamelist?

    Scheduled Pinned Locked Moved Help and Support
    gamelist.xmlrom directoryfilenamerom
    6 Posts 3 Posters 955 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.
    • D
      danielsian
      last edited by

      Hello guys
      I'm trying to write a gamelist editor application with some features, and I need to check the ROM directory and compare its content with the content of a gamelist. So I'll be able to clean the gamelist.xml by removing the absent games or adding new entries based on the physical content of a ROM directory.
      Is the filename of a ROM file what is used in a gamelist to have a match?

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

        The gamelist.xml ROM details and ROM filename MUST be exactly the same

        You can rename any ROM filename to anything you want, I remove all country codes and anything else in my ROMs so you are left with nothing but the pure ROM name BEFORE I scrape the files. That way its guaranteed to all match and not cause any confusion later for missing media. Also, if the gamelist.xml data doesn't match the ROM this causes big problems for video or snapshots as the names now don't match so ES doesn't know what to load for media playback

        IE :

        Crash Bandicoot.img (for PSX) is my filename and gamelist.xml ROM name, but the original may be Crash Bandicoot (E) (!) (a1).img. I strip ANY extra information as I like my ROMs nice and neat and also the ROM list name neat

        1 Reply Last reply Reply Quote 0
        • D
          danielsian
          last edited by danielsian

          Thanks steptoe for your answer.

          If I rename the ROM file, how does the Scraper identify that ROM file?

          herb_fargusH 1 Reply Last reply Reply Quote 0
          • herb_fargusH
            herb_fargus administrators @danielsian
            last edited by

            @danielsian depends on the scraper. Sselphs scraper uses hashes so what the file is named is irrelevant in that case

            If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

            Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

            1 Reply Last reply Reply Quote 1
            • S
              steptoe
              last edited by

              I assumed they all used hashes, as I used SkraperUI (same guy that wrote UXS) and it found all my renamed ROMs and more, that sselphscraper struggled to find

              1 Reply Last reply Reply Quote 1
              • D
                danielsian
                last edited by

                Thank you guys. I'm not gonna make a scraper, just a gamelist editor, so I'm safe now on what to do ;-)

                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.