package net.oni2.aeinstaller.backend; import java.io.File; public class StuffToRefactorLater { /** * Verify that the Edition is within a subfolder to vanilla Oni (..../Oni/Edition/AEInstaller) * @return true if GDF can be found in the parent's parent-path */ public static boolean verifyRunningDirectory() { File jarPath = new File(Settings.getJarPath()); File parentPath = jarPath.getParentFile().getParentFile(); File gdf = new File(parentPath, "GameDataFolder"); return gdf.exists() && gdf.isDirectory(); } }