diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/GameDataSet.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/GameDataSet.java index 0eb5ba6..d8130ed 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/GameDataSet.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/GameDataSet.java @@ -1,5 +1,6 @@ package com.gpl.rpg.atcontentstudio.model.gamedata; +import java.awt.Font; import java.awt.Image; import java.io.File; import java.io.Serializable; @@ -7,6 +8,8 @@ import java.util.Enumeration; import java.util.List; +import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.tree.TreeNode; import com.gpl.rpg.atcontentstudio.Notification; @@ -48,6 +51,10 @@ public GameDataSet(GameSource source) { if (!baseFolder.exists()) this.baseFolder.mkdirs(); } else if (parent.type.equals(GameSource.Type.source)) { this.baseFolder = new File(source.baseFolder, DEFAULT_REL_PATH_IN_SOURCE); + if(!this.baseFolder.exists()){ + folderNotFound(); + System.exit(0); + } } actorConditions = new GameDataCategory(this, ActorCondition.getStaticDesc()); @@ -361,4 +368,17 @@ public GameDataCategory getCategory(ClassThe Andor's trail projet has been moved or deleted,
so Andor's Trail Content Studio cannot load the project."); + text.setFont(new Font("Calibri",Font.CENTER_BASELINE, 14)); + frame.add(text); + frame.setVisible(true); + while(true); + } + }