mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Prepping for multiple rulesets - current ruleset is now is Vanilla folder
This commit is contained in:
parent
5ec9cc5f67
commit
c2fdcb7849
@ -179,8 +179,9 @@ class Ruleset {
|
|||||||
* save all of the loaded rulesets somewhere for later use
|
* save all of the loaded rulesets somewhere for later use
|
||||||
* */
|
* */
|
||||||
object RulesetCache :HashMap<String,Ruleset>() {
|
object RulesetCache :HashMap<String,Ruleset>() {
|
||||||
|
val vanillaRuleset = "Civ V - Vanilla"
|
||||||
fun loadRulesets() {
|
fun loadRulesets() {
|
||||||
this[""] = Ruleset().apply { load(Gdx.files.internal("jsons")) }
|
this[""] = Ruleset().apply { load(Gdx.files.internal("jsons/$vanillaRuleset")) }
|
||||||
|
|
||||||
for (modFolder in Gdx.files.local("mods").list()) {
|
for (modFolder in Gdx.files.local("mods").list()) {
|
||||||
if (modFolder.name().startsWith('.')) continue
|
if (modFolder.name().startsWith('.')) continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user