From 3b3fa2e96dad33fdc0d1b6d6bdf5dfebb4858fb8 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:00:46 +0200 Subject: [PATCH] Simply TAStudio ClientSettings loading --- .../movie/tasproj/TasMovie.IO.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs index c8260c9ee5..6aef9a4e50 100644 --- a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs +++ b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs @@ -100,23 +100,13 @@ namespace BizHawk.Client.Common if (GetClientSettingsOnLoad != null) { - string clientSettings = ""; bl.GetLump(BinaryStateLump.ClientSettings, abort: false, tr => { - string line; - while ((line = tr.ReadLine()) != null) - { - if (!string.IsNullOrWhiteSpace(line)) - { - clientSettings = line; - } - } - }); + string clientSettings = tr.ReadToEnd(); - if (!string.IsNullOrWhiteSpace(clientSettings)) - { - GetClientSettingsOnLoad(clientSettings); - } + if (!string.IsNullOrEmpty(clientSettings)) + GetClientSettingsOnLoad(clientSettings); + }); } bl.GetLump(BinaryStateLump.VerificationLog, abort: false, tr =>