aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-07-01 03:29:37 -0300
committerGitHub <noreply@github.com>2023-07-01 06:29:37 +0000
commit12c5f6ee89a2e93814d144a2c92acbf3f8a4788f (patch)
tree21ff7ab3e875624b71408ee3aa624d70e9692f78
parent79a1314ee45ea346efc0078d9338ae88e12d07a5 (diff)
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (#5354)1.1.945
-rw-r--r--src/Ryujinx.Ui.LocaleGenerator/LocaleGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Ui.LocaleGenerator/LocaleGenerator.cs b/src/Ryujinx.Ui.LocaleGenerator/LocaleGenerator.cs
index f154e704..6fb19fae 100644
--- a/src/Ryujinx.Ui.LocaleGenerator/LocaleGenerator.cs
+++ b/src/Ryujinx.Ui.LocaleGenerator/LocaleGenerator.cs
@@ -14,7 +14,7 @@ namespace Ryujinx.Ui.LocaleGenerator
context.RegisterSourceOutput(contents, (spc, content) =>
{
- var lines = content.Split('\n').Where(x => x.Trim().StartsWith("\"")).Select(x => x.Split(':').First().Trim().Replace("\"", ""));
+ var lines = content.Split('\n').Where(x => x.Trim().StartsWith("\"")).Select(x => x.Split(':')[0].Trim().Replace("\"", ""));
string enumSource = "namespace Ryujinx.Ava.Common.Locale;\n";
enumSource += "internal enum LocaleKeys\n{\n";
foreach (var line in lines)