source: AE/installer2/src/net/oni2/aeinstaller/backend/StuffToRefactorLater.java@ 592

Last change on this file since 592 was 591, checked in by alloc, 12 years ago

AEI2-import

File size: 531 bytes
Line 
1package net.oni2.aeinstaller.backend;
2
3import java.io.File;
4
5public class StuffToRefactorLater {
6 /**
7 * Verify that the Edition is within a subfolder to vanilla Oni (..../Oni/Edition/AEInstaller)
8 * @return true if GDF can be found in the parent's parent-path
9 */
10 public static boolean verifyRunningDirectory() {
11 File jarPath = new File(Settings.getJarPath());
12 File parentPath = jarPath.getParentFile().getParentFile();
13 File gdf = new File(parentPath, "GameDataFolder");
14 return gdf.exists() && gdf.isDirectory();
15 }
16}
Note: See TracBrowser for help on using the repository browser.