forked from MeloNX/MeloNX
fix title updates again
This commit is contained in:
parent
f3531394d5
commit
25b31b559a
@ -68,8 +68,9 @@ class TitleUpdateViewModel(val titleId: String) {
|
|||||||
var gson = Gson()
|
var gson = Gson()
|
||||||
var json = gson.toJson(this)
|
var json = gson.toJson(this)
|
||||||
jsonPath = (MainActivity.AppPath
|
jsonPath = (MainActivity.AppPath
|
||||||
?: "") + "/games/" + titleId.toLowerCase(Locale.current) + "/updates.json"
|
?: "") + "/games/" + titleId.toLowerCase(Locale.current)
|
||||||
File(jsonPath).writeText(json)
|
File(jsonPath).mkdirs()
|
||||||
|
File(jsonPath + "/updates.json").writeText(json)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user