mirror of
https://github.com/GreemDev/Ryujinx
synced 2025-01-20 09:42:27 +01:00
Fix struct name not following C# standards
This commit is contained in:
parent
d7fb320779
commit
7bf117f7c9
3 changed files with 7 additions and 7 deletions
|
@ -26,7 +26,7 @@ namespace Ryujinx.BuildValidationTasks
|
|||
data = sr.ReadToEnd();
|
||||
}
|
||||
|
||||
LocalesJSON json = JsonConvert.DeserializeObject<LocalesJSON>(data);
|
||||
LocalesJson json = JsonConvert.DeserializeObject<LocalesJson>(data);
|
||||
|
||||
for (int i = 0; i < json.Locales.Count; i++)
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ namespace Ryujinx.BuildValidationTasks
|
|||
return true;
|
||||
}
|
||||
|
||||
struct LocalesJSON
|
||||
struct LocalesJson
|
||||
{
|
||||
public List<string> Languages { get; set; }
|
||||
public List<LocalesEntry> Locales { get; set; }
|
||||
|
|
|
@ -158,7 +158,7 @@ namespace Ryujinx.Ava.Common.Locale
|
|||
return null;
|
||||
}
|
||||
|
||||
LocalesJSON json = JsonHelper.Deserialize(fileData, LocalesJSONContext.Default.LocalesJSON);
|
||||
LocalesJson json = JsonHelper.Deserialize(fileData, LocalesJsonContext.Default.LocalesJSON);
|
||||
|
||||
foreach (LocalesEntry locale in json.Locales)
|
||||
{
|
||||
|
@ -186,7 +186,7 @@ namespace Ryujinx.Ava.Common.Locale
|
|||
}
|
||||
}
|
||||
|
||||
public struct LocalesJSON
|
||||
public struct LocalesJson
|
||||
{
|
||||
public List<string> Languages { get; set; }
|
||||
public List<LocalesEntry> Locales { get; set; }
|
||||
|
@ -199,6 +199,6 @@ namespace Ryujinx.Ava.Common.Locale
|
|||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(LocalesJSON))]
|
||||
internal partial class LocalesJSONContext : JsonSerializerContext { }
|
||||
[JsonSerializable(typeof(LocalesJson))]
|
||||
internal partial class LocalesJsonContext : JsonSerializerContext { }
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace Ryujinx.Ava.UI.Views.Main
|
|||
|
||||
string languageJson = EmbeddedResources.ReadAllText(localePath);
|
||||
|
||||
LocalesJSON locales = JsonHelper.Deserialize(languageJson, LocalesJSONContext.Default.LocalesJSON);
|
||||
LocalesJson locales = JsonHelper.Deserialize(languageJson, LocalesJsonContext.Default.LocalesJSON);
|
||||
|
||||
foreach (string language in locales.Languages)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue