hetelek / Velocity

A cross-platform application built using the Qt framework that allows you to browse and edit Xbox 360 files.
GNU General Public License v3.0
165 stars 47 forks source link

Folder Pathmarkers made invalid by sorting and/or deleting entry before a Folder #67

Open K4r0qtuYNE5G4qgZ opened 10 years ago

K4r0qtuYNE5G4qgZ commented 10 years ago

Writing a sorted Filelist automatically invalidate any Pathmarker for Files and Folders located within a Folder.

Its a simple Bug, the Entry ID of a Folder becomes the Pathmarker for Folders and Files located in Folders, if the Filelist is sorted and the Pathmarkers not fixed (Fixing is easly possible i made a Routine for it for my own Delphi Port of Velocity) then all those Pathmarkers will automatically become invalid because the Entry ID changes.

Also the same happens if a File or Folder is deleted/removed from the Package and the Pathmarkers for all Files/Folders below are not fixed.

This Issue causes Files and Folders to vanish from the List and also causes crashes immediately because there are Files/Folders with invalid Pathmarkers and therefore referecing wrong Entry's.