mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -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()
|
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 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)
|
exitProcess(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user