FIX: Remove duplicates from favorites on-the-fly #994
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Favorites still gets corrupted sometimes. It happens when we share rom folders between Verified, Expert, or Search.
This:
Will get mangled into this:
To reproduce:
Miyoo's fix seems to be comparing the string value of the rom paths for restricting double-favoriting - when in reality they should be comparing the absolute paths:
/mnt/SDCARD/RApp/gpsp/../../Roms/GBA/Earthworm Jim (U).zip
<>
/mnt/SDCARD/Emu/GBA/../../Roms/GBA/Earthworm Jim (U).zip
Comparing absolute paths:
/mnt/SDCARD/Roms/GBA/Earthworm Jim (U).zip
<>
/mnt/SDCARD/Roms/GBA/Earthworm Jim (U).zip
Changes
keymon