Add some basic initial functionality to download mods

This commit is contained in:
Zontreck 2023-11-03 02:23:10 -07:00
parent 64f5e3c267
commit 906191e4d5
3 changed files with 73 additions and 1 deletions

View file

@ -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")