File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
src/main/java/dev/koifysh/archipelago Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -180,25 +180,27 @@ protected void loadDataPackage() {
180180 }
181181 return ;
182182 }
183- for (String gameName : games ) {
184- File dir = localGamesList .get (gameName );
185- if (null == dir ){
186- continue ;
187- }
188- //check all checksums
189- for (File version : dir .listFiles ()){
190- String versionStr = versions .get (gameName );
191- if (versionStr != null && versionStr .equals (version .getName ())) {
192- try (FileReader reader = new FileReader (version )){
193- updateDataPackage (gson .fromJson (reader , DataPackage .class ));
194- LOGGER .info ("Read datapackage for Game: " .concat (gameName ).concat (" Checksum: " ).concat (version .getName ()));
195- } catch (IOException e ){
196- LOGGER .info ("Failed to read a datapackage. Starting with a new one." );
183+
184+ for (String gameName : games ) {
185+ File dir = localGamesList .get (gameName );
186+ if (null == dir ){
187+ continue ;
188+ }
189+ //check all checksums
190+ for (File version : dir .listFiles ()){
191+ String versionStr = versions .get (gameName );
192+ if (versionStr != null && versionStr .equals (version .getName ())) {
193+ try (FileReader reader = new FileReader (version )){
194+ updateDataPackage (gson .fromJson (reader , DataPackage .class ));
195+ LOGGER .info ("Read datapackage for Game: " .concat (gameName ).concat (" Checksum: " ).concat (version .getName ()));
196+ } catch (IOException e ){
197+ LOGGER .info ("Failed to read a datapackage. Starting with a new one." );
198+ }
199+ }
197200 }
198201 }
199202 }
200203 }
201- }
202204 }
203205
204206 public void saveDataPackage () {
You can’t perform that action at this time.
0 commit comments