pekempy / Breeze

A Material Design game launcher for Windows
http://pekempy.co.uk
GNU General Public License v3.0
27 stars 6 forks source link

File paths not updating when renaming game entries #14

Closed Sirliamtron closed 5 years ago

Sirliamtron commented 5 years ago

Added a new game entry: Title: test Path to file: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/shortcuts/test.lnk Genre(s): Action Web link: Google.com Icon: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-icon.png Poster: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-poster.png Banner: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-banner.png

Restarted application Changed title from ‘test’ to ‘test1’ Checked file paths in ‘Edit an existing game’:

Title: test1 Path to file: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/shortcuts/test.lnk Genre(s): Action Web link: Google.com Icon: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-icon.png Poster: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-poster.png Banner: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-banner.png

Checked /img/, /shortcuts/ & /working/ and all corresponding files have all been renamed to ‘test1’ Attempted to run game - successful. (Not sure how this was successful as this was trying to run ‘test.Ink’ and this file no longer existed, it had been changed to ‘test1.Ink’)

Restarted application ‘Test1’ now has no image when viewing in poster, icon or banner view. Checked file paths in ‘Edit an existing game’:

Title: test1 Path to file: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/shortcuts/test.lnk Genre(s): Action Web link: Google.com Icon: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-icon.png Poster: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-poster.png Banner: C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/img/test-banner.png

Attempted to run game - Unsuccessful Application closed System.ComponentModel.Win32Exception: 'The system cannot find the file specified' "C:/Users/Liam/source/repos/Breeze-master/bin/Debug/Resources/working/test.lnk"

Restarted application Attempted to change the file paths for icon, poster & banner to the ‘test1’ files in /img/ Received error: ‘A game with this title already exists. If you need to fix capitalisation, add a character, save and then edit again (Sorry)’

Restarted application Attempted to change file path for the .exe to the ‘test1’ file in /shortcuts/ Application closed _System.Runtime.InteropServices.COMException: 'Error HRESULT EFAIL has been returned from a call to a COM component.'

Restarted application Attempted to change file path for the .exe to the original .exe selected when creating ‘test’ Received error ‘A game with this title already exists. If you need to fix capitalisation, add a character, save and then edit again (Sorry)’

‘A game with this title already exists. If you need to fix capitalisation, add a character, save and then edit again (Sorry)’ error generates as there is already a file named ‘test1’ in the appropriate folder (/img/, /shortcuts/, /working/) which was created when the game entry title was changed to ‘test1’ originally.

Whilst the files were changed to ‘test1’ the file paths continued to try to locate the files ‘test’ after the title change.

pekempy commented 5 years ago

Resolved in 2bb61dc