Rev | Line | |
---|
[591] | 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.