mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 19:36:24 +02:00
fix title updates again
This commit is contained in:
parent
8002065d28
commit
49f2c878d1
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue