diff options
author | Marco Carvalho <marcolucio27@gmail.com> | 2023-10-05 07:41:00 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 12:41:00 +0200 |
commit | 7835968214241c37c677b6c5c82aa3353546de89 (patch) | |
tree | 70e4a1d5fbacf371d1d5eff1d6c025b7ff14f922 /src/Ryujinx.HLE/FileSystem/ContentManager.cs | |
parent | 0aceb534cb34287e354f92c37a1b5ebf136e8e74 (diff) |
Strings should not be concatenated using '+' in a loop (#5664)1.1.1043
* Strings should not be concatenated using '+' in a loop
* fix IDE0090
* undo GenerateLoadOrStore
* prefer string interpolation
* Update src/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs
Co-authored-by: Mary <thog@protonmail.com>
---------
Co-authored-by: Mary <thog@protonmail.com>
Diffstat (limited to 'src/Ryujinx.HLE/FileSystem/ContentManager.cs')
-rw-r--r-- | src/Ryujinx.HLE/FileSystem/ContentManager.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Ryujinx.HLE/FileSystem/ContentManager.cs b/src/Ryujinx.HLE/FileSystem/ContentManager.cs index 13f98763..646808e7 100644 --- a/src/Ryujinx.HLE/FileSystem/ContentManager.cs +++ b/src/Ryujinx.HLE/FileSystem/ContentManager.cs @@ -19,6 +19,7 @@ using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; +using System.Text; using Path = System.IO.Path; namespace Ryujinx.HLE.FileSystem @@ -817,13 +818,13 @@ namespace Ryujinx.HLE.FileSystem if (updateNcas.Count > 0) { - string extraNcas = string.Empty; + StringBuilder extraNcas = new(); foreach (var entry in updateNcas) { foreach (var (type, path) in entry.Value) { - extraNcas += path + Environment.NewLine; + extraNcas.AppendLine(path); } } @@ -954,13 +955,13 @@ namespace Ryujinx.HLE.FileSystem if (updateNcas.Count > 0) { - string extraNcas = string.Empty; + StringBuilder extraNcas = new(); foreach (var entry in updateNcas) { foreach (var (type, path) in entry.Value) { - extraNcas += path + Environment.NewLine; + extraNcas.AppendLine(path); } } |