mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Added CLI arg to specify the data directory. Tests for save/load, downloading mods, creating maps, show success
This commit is contained in:
parent
f03c30ed5c
commit
4ce6536871
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user