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

    Possibly to combine two gamelists for one console?

    Scheduled Pinned Locked Moved Help and Support
    gamelistmergewindows 10retroarchcombine
    4 Posts 3 Posters 761 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.
    • G
      goestohollywood
      last edited by

      I'm on Windows 10, running RetroArch and EmulationStation. I had a folder that had all my games scraped, but got more that I want to add to it. I didn't want to rescrape everything, and used a third-party scraper to do so. Now I have two folders for the same console with two gamelist.xml files. Is there a simple way to merge the two into one folder/gamelist.xml file?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        You can copy the contents of one gamelist into the other, but make sure you omit the start and end tags from the copied file - the lines with <gamelist> (at the beginning) and </gamelist> (at the end).

        So if the source gamelist is like:

        ?xml version="1.0"?>
        <gameList>
        	<game>
        		<path>./Pitfall! (1982) (Activision).rom</path>
        ....
        ....
        </game>
        </gamelist>
        

        copy just

        <game>
        		<path>./Pitfall! (1982) (Activision).rom</path>
        ....
        ...
        </game>
        

        part. Add the copied content just before the </gamelist> line in the destination file. Make sure you take a backup of the destination file before you modify it.
        After you merge the gamelist, don't forget to copy the actual scraped data to the new folder.

        G 1 Reply Last reply Reply Quote 0
        • G
          goestohollywood @mitu
          last edited by

          @mitu got it. i guess my OCD-ness won't like that it's not in alphabetical order unless I manually do it, but I appreciate it

          WeirdHW 1 Reply Last reply Reply Quote 0
          • WeirdHW
            WeirdH @goestohollywood
            last edited by

            @goestohollywood Don't worry about the order in the file: ES is always shuffling that around anyway if you have 'save metadata' enabled. The list SHOULD be in alphabetical order inside ES either way (or else it's conforming to any <sortname> tags you might have).

            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.