mirror of
				https://github.com/Ryujinx/Ryujinx.git
				synced 2025-11-04 02:33:42 +00:00 
			
		
		
		
	Indexing at 0 should be used instead of the "Enumerable" extension method "First" (#5354)
This commit is contained in:
		
							parent
							
								
									79a1314ee4
								
							
						
					
					
						commit
						12c5f6ee89
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user