0
0
Fork 0

Handle parsing of corrupt Config.json and prevent crash on launch (#4309)

* Handle parsing of corrupt Config.json and prevent crash on launch

* Implement a cleaner solution to handle empty json object
This commit is contained in:
gnisman 2023-01-22 18:04:33 +02:00 committed by GitHub
parent 4f293f8cbe
commit dc30d94852
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,7 +340,7 @@ namespace Ryujinx.Ui.Common.Configuration
{ {
configurationFileFormat = JsonHelper.DeserializeFromFile<ConfigurationFileFormat>(path); configurationFileFormat = JsonHelper.DeserializeFromFile<ConfigurationFileFormat>(path);
return true; return configurationFileFormat.Version != 0;
} }
catch catch
{ {