aboutsummaryrefslogtreecommitdiff
path: root/src/main/LevelController.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-05-30 22:48:03 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-05-30 22:48:03 -0400
commit4a5514698794960dda35af2ecc7b0ebc683fc4ec (patch)
treee33e4ff1ed0d6eef2c83d214c423b74be2d80792 /src/main/LevelController.java
parenta671ee0633107290066e0cd4e706b7d00de868f2 (diff)
downloadNPEhero-4a5514698794960dda35af2ecc7b0ebc683fc4ec.tar.gz
NPEhero-4a5514698794960dda35af2ecc7b0ebc683fc4ec.tar.bz2
NPEhero-4a5514698794960dda35af2ecc7b0ebc683fc4ec.zip
finish metadata and leaderboard reading
Diffstat (limited to '')
-rw-r--r--src/main/LevelController.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/main/LevelController.java b/src/main/LevelController.java
index faa5bf4..3abf810 100644
--- a/src/main/LevelController.java
+++ b/src/main/LevelController.java
@@ -1,6 +1,8 @@
package main;
import java.io.File;
+import java.io.IOException;
+
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.image.Image;
@@ -23,11 +25,21 @@ public class LevelController
{
if (curFileInCurDiff.getName().equals("metadata.json"))
{
- diff.parseMetadata(curFileInCurDiff);
+ try {
+ diff.parseMetadata(curFileInCurDiff);
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
}
if (curFileInCurDiff.getName().equals("leaderboard.json"))
{
- diff.parseLeaderboard(curFileInCurDiff);
+ try {
+ diff.parseLeaderboard(curFileInCurDiff);
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
}
if (curFileInCurDiff.getName().equals("notes.txt"))
{