Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
update on GardenGnomePackage.java class: assuming to use "preview.jpg…
Browse files Browse the repository at this point in the history
…" as default file name when gginfo.json cannot be read
  • Loading branch information
sebastianknopf committed Feb 19, 2020
1 parent a50d488 commit c8511e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/html_ggnome_viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2>GardenGnomeViewer</h2>
<p>Offline viewer for GGPKG files generated with Pano2VR</p>
<img src="ggnome_viewer.png" style="width:50%;max-width:300px" />
<p>
Version: 1.1.3<br />
Version: 1.1.4<br />
Copyright (c) 2019 Sebastian Knopf
</p>
<p style="text-align:left"><i>Note:</i> This is <b>not</b> a official project from GardenGnome Software! You can find the latest information on GitHub</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ private void loadGGInfo() {
this.metaConfigName = ggInfo.getString("configuration");
this.metaPreviewName = ggInfo.getJSONObject("preview").getString("img");
} catch (Exception e) {
throw new RuntimeException("unable to read gginfo");
// assume preview name if the gginfo.json is not readable
this.metaPreviewName = "preview.jpg";
// throw new RuntimeException("unable to read gginfo");
}

this.metaLoaded = true;
Expand Down

0 comments on commit c8511e4

Please sign in to comment.