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

    EmulationStation - Removed favorite does not get saved

    Scheduled Pinned Locked Moved Help and Support
    favoritesbugemulationstatio
    5 Posts 3 Posters 545 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.
    • vbsV
      vbs
      last edited by

      I noticed that removing the favorite flag from a game does not get saved sometimes.

      Steps to reproduce:

      I have this N64 gamelist. "test2" is in favorites.

      vbs@ubuntu:~/.emulationstation/gamelists/n64$ cat gamelist.xml 
      <?xml version="1.0"?>
      <gameList>
      	<game>
      		<path>./test2.n64</path>
      		<name>test2</name>
      		<favorite>true</favorite>
      	</game>
      	<game>
      		<path>./test.n64</path>
      		<name>testgame</name>
      		<playcount>1</playcount>
      		<lastplayed>20190804T133954</lastplayed>
      	</game>
      </gameList>
      

      Then I go to the N64 screen in EmulationStation, select "Test2" and press X. The message "Removed Test2 from favorites" appears,

      Then I quit ES but the gamelist.xml is not altered and "Test2" is therefore is still in favorites when starting ES again.

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

        Please add more info about your system, as requested in https://retropie.org.uk/forum/topic/3/read-this-first.

        Are the gamelist file permissions ok ? Is it owned and it's writable by the pi user (assuming you're using a Raspberry PI) ?

        vbsV 1 Reply Last reply Reply Quote 0
        • vbsV
          vbs @mitu
          last edited by

          @mitu
          I am on Ubuntu 18.04 x64, file permissions should be ok. Saving usually works.

          I looked into the code and I am pretty sure the problem is this code in Gamelist.cpp:220:

          		// check if current file has metadata, if no, skip it as it wont be in the gamelist anyway.
          		if ((*fit)->metadata.isDefault()) {
          			continue;
          		}
          

          I wanted to go to Github with this but issues need to be verified on forum first (says Github). Could you please try to verify with the steps I posted above?

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

            Can you add or remove other games from Favorites and they're saved?

            1 Reply Last reply Reply Quote 0
            • vbsV
              vbs
              last edited by

              Yes, other games are fine. I am quite sure it's a bug and proposing a fix here:
              https://github.com/RetroPie/EmulationStation/pull/592

              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.