1to9only / HoDoKu

This HoDoKu is my modifications to hobiwan's 2.2.0 Hodoku.jar [HoDoKu - v2.2.0 (Build 116)]
GNU General Public License v3.0
13 stars 2 forks source link

hodoku.hcfg corrupted Config Bug, @PseudoFish fix #15

Closed 1to9only closed 3 years ago

1to9only commented 3 years ago

To import PseudoFish Config Fix where if the config [file hodoku.hcfg] was corrupt, Hodoku would fail to re-generate the config file. I [PseudoFish] verify if the file loaded is empty, if it is, I [PseudoFish] delete it which forces Hodoku to re-generate a default config file.

To recreate the problem, I [1to9only] made the hodoku.hcfg files in the Hoduku and TEMP folders 0 bytes.

1to9only commented 3 years ago

Log output (edited):

INFO: Reading options from C:\Temp\hodoku.hcfg
C:\Temp\hodoku.hcfg is corrupted, deleting...
Nov 01, 2021 8:50:14 AM sudoku.Options readOptions
INFO: No config file found
Nov 01, 2021 8:50:14 AM sudoku.Options writeOptions
INFO: Writing options to C:\Temp\hodoku.hcfg
...
CONFIG: Reading options from D:\Hodoku-2.2.4\hodoku.hcfg
Nov 01, 2021 8:50:14 AM sudoku.Options readOptions
INFO: Reading options from D:\Hodoku-2.2.4\hodoku.hcfg
D:\Hodoku-2.2.4\hodoku.hcfg is corrupted, deleting...
Nov 01, 2021 8:50:14 AM sudoku.Options readOptions
INFO: No config file found