mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
problem occurs because there is no check for duplicate entries in the paths vector. The fix is implemented using the combination of two containers; a vector to ensure the insertion order and a set to ensure the uniqueness the entries. The set first attempts to insert the new path and uses the return of insertion to decide if the vector needs to be updated.