forked from MeloNX/MeloNX
Game update path fix
This commit is contained in:
parent
2a7cfa5650
commit
361d5a03e1
@ -183,12 +183,12 @@ struct UpdateManagerSheet: View {
|
||||
jsonDict["selected"] = ""
|
||||
selectedItem = ""
|
||||
} else {
|
||||
jsonDict["selected"] = newSelection
|
||||
jsonDict["selected"] = "updates/\(newSelection)"
|
||||
selectedItem = newSelection
|
||||
}
|
||||
|
||||
jsonDict["paths"] = items
|
||||
|
||||
|
||||
let newData = try JSONSerialization.data(withJSONObject: jsonDict, options: .prettyPrinted)
|
||||
try newData.write(to: jsonURL)
|
||||
Ryujinx.shared.games = Ryujinx.shared.loadGames()
|
||||
|
@ -752,7 +752,7 @@ namespace Ryujinx.Headless.SDL2
|
||||
if (File.Exists(titleUpdateMetadataPath))
|
||||
{
|
||||
string updatePathRelative = JsonHelper.DeserializeFromFile(titleUpdateMetadataPath, _titleSerializerContext.TitleUpdateMetadata).Selected;
|
||||
updatePath = Path.Combine(AppDataManager.BaseDirPath, "updates", updatePathRelative);
|
||||
updatePath = Path.Combine(AppDataManager.BaseDirPath, updatePathRelative);
|
||||
|
||||
if (File.Exists(updatePath))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user