ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/installer2/src/net/oni2/aeinstaller/backend/StuffToRefactorLater.java
Revision: 591
Committed: Fri Dec 28 20:12:33 2012 UTC (12 years, 11 months ago) by alloc
Content type: text/x-java
File size: 531 byte(s)
Log Message:
AEI2-import

File Contents

# Content
1 package net.oni2.aeinstaller.backend;
2
3 import java.io.File;
4
5 public 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 }