Continue button not updated if save files were deleted

Fixed UI & UX
0xE1 [github] · 4 years ago

Issue description

Continue button on main menu will show last save file even if all files are deleted, and clicking it will cause an unhandled File not found exception.

 ---> FileNotFoundException: Could not find file 'C:\Users\username\Documents\Captain of Industry\Saves\22-08-27_15-06-autosave.save'.
  at System.IO.FileInfo.get_Length () [0x0001d]  
  at (wrapper remoting-invoke-with-check) System.IO.FileInfo.get_Length()
  at Mafi.Unity.GamePlayScene+<loadGame>d__14.MoveNext () [0x000bc]  
  at Mafi.Unity.GamePlayScene+<Initialize>d__12.MoveNext () [0x000a5]  
  at Mafi.Unity.Main.Update ()  ```

### Expected behavior

Continue Button should be updated when returning from Load screen to reflect the potential change that was made with save file it was referencing to

### Reproduction steps

Delete all the save files, go back to menu and click Continue

### Game version

v0.4.10

### Attachments

22-08-27\_12-52-10\_6356.log
1 attachment only for registered users
Captain Zuff Captain Zuff · 3 years ago

This has been closed as of 0.4.13! Please let us know if you have any further problems with this issue.

Closed as ✅ Fixed

5 Showing 1–2 of 2