mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 00:47:11 +02:00
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:
parent
363f3b5491
commit
c0865d8a51
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ namespace Ryujinx.Ui.Common.Configuration
|
|||
{
|
||||
configurationFileFormat = JsonHelper.DeserializeFromFile<ConfigurationFileFormat>(path);
|
||||
|
||||
return true;
|
||||
return configurationFileFormat.Version != 0;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue