ps2homebrew / hdl-dump

Install games in HDLoader format to APA-formatted hard drive
122 stars 25 forks source link

[FR]: add some workaround for partition renaming `partition already exists` error #67

Open israpps opened 1 year ago

israpps commented 1 year ago

Checks

Describe the FR

fix the partition renaming when user has not edited the segment of the filename wich is processed to be a part of the partition name

i'm not sure if just removing this code will be the solution. https://github.com/ps2homebrew/hdl-dump/blob/87d3099d2ba39a15e86ebc7dc725e8eaa49f2d5f/hdl.c#L1334-L1336

If the solution is that simple, then let me know and i'll make a PR

Describe the solution you'd like

that renaming a game should not trow an error if the game title was not modified on the first ~17 chars

Describe alternatives you've considered

No response

Additional context

No response

israpps commented 1 year ago

another option would be to compare the first 17 chars of both current title and the requested new one.

If they are the same, then avoid that error handling, because, if the part that has influence on the partition name has not been changed, it means there will be no conflicts.