Add mod jail functions
This commit is contained in:
parent
8162dbe97a
commit
4fb06c8462
1 changed files with 12 additions and 0 deletions
|
@ -72,6 +72,10 @@ class Settings {
|
||||||
return "$game_path${Platform.pathSeparator}mods";
|
return "$game_path${Platform.pathSeparator}mods";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getModJailPath() {
|
||||||
|
return "$game_path${Platform.pathSeparator}mods.jail";
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> createModFolderIfNotExists() async {
|
Future<void> createModFolderIfNotExists() async {
|
||||||
if (Directory(getModPath()).existsSync()) {
|
if (Directory(getModPath()).existsSync()) {
|
||||||
return;
|
return;
|
||||||
|
@ -80,6 +84,14 @@ class Settings {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> createModJailFolderIfNotExists() async {
|
||||||
|
if (Directory(getModJailPath()).existsSync()) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
await Directory(getModJailPath()).create(recursive: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool serverInstalled() {
|
bool serverInstalled() {
|
||||||
return File(
|
return File(
|
||||||
"${getServerPath()}${Platform.pathSeparator}ConanSandboxServer.exe")
|
"${getServerPath()}${Platform.pathSeparator}ConanSandboxServer.exe")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue