fix title updates again

This commit is contained in:
Emmanuel Hansen 2023-07-09 07:13:49 +00:00
parent f3531394d5
commit 25b31b559a

View File

@ -68,8 +68,9 @@ class TitleUpdateViewModel(val titleId: String) {
var gson = Gson()
var json = gson.toJson(this)
jsonPath = (MainActivity.AppPath
?: "") + "/games/" + titleId.toLowerCase(Locale.current) + "/updates.json"
File(jsonPath).writeText(json)
?: "") + "/games/" + titleId.toLowerCase(Locale.current)
File(jsonPath).mkdirs()
File(jsonPath + "/updates.json").writeText(json)
}
}