Added CLI arg to specify the data directory. Tests for save/load, downloading mods, creating maps, show success

This commit is contained in:
yairm210 2024-07-27 23:23:03 +03:00
parent f03c30ed5c
commit 4ce6536871

View File

@ -91,8 +91,12 @@ internal object DesktopLauncher {
UiElementDocsWriter().write()
}
val customDataDirPrefix="--data-dir="
val customDataDir = arg.find { it.startsWith(customDataDirPrefix) }?.removePrefix(customDataDirPrefix)
// HardenGdxAudio extends Lwjgl3Application, and the Lwjgl3Application constructor runs as long as the game runs
HardenGdxAudio(DesktopGame(config, null), config)
HardenGdxAudio(DesktopGame(config, customDataDir), config)
exitProcess(0)
}
}