Add some basic initial functionality to download mods
This commit is contained in:
parent
64f5e3c267
commit
906191e4d5
3 changed files with 73 additions and 1 deletions
|
@ -77,6 +77,24 @@ class Settings {
|
|||
(Platform.isWindows ? ".exe" : ".sh");
|
||||
}
|
||||
|
||||
String getSteamCmd2FA() {
|
||||
return steamcmd_path +
|
||||
Platform.pathSeparator +
|
||||
"steamcmd-2fa" +
|
||||
(Platform.isWindows ? ".exe" : "");
|
||||
}
|
||||
|
||||
String getModPath() {
|
||||
return game_path + Platform.pathSeparator + "mods";
|
||||
}
|
||||
|
||||
void assertModsFolderExists() {
|
||||
if (Directory(getModPath()).existsSync())
|
||||
return;
|
||||
else
|
||||
Directory(getModPath()).createSync(recursive: true);
|
||||
}
|
||||
|
||||
bool serverInstalled() {
|
||||
return File(
|
||||
getServerPath() + Platform.pathSeparator + "ConanSandboxServer.exe")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue