Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-10 06:39:36 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-10 06:39:36 +0300
commitbafb7face696afa218eb7105cb814f170c6b54b0 (patch)
tree50323bc12ee83d148b17893ec3631d61adb965e6 /SelectModsForm.cs
parent9089c5ffb0a7b77a5b9687c5457183bbe84f0647 (diff)
Save-State manager! And some fixes.
Diffstat (limited to 'SelectModsForm.cs')
-rw-r--r--SelectModsForm.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/SelectModsForm.cs b/SelectModsForm.cs
index 06c45478..f77fcd9f 100644
--- a/SelectModsForm.cs
+++ b/SelectModsForm.cs
@@ -111,10 +111,7 @@ namespace com.clusterrr.hakchi_gui
{
var o = new MemoryStream();
szExtractorTar.ExtractFile(f, o);
- var rawData = new byte[o.Length];
- o.Seek(0, SeekOrigin.Begin);
- o.Read(rawData, 0, (int)o.Length);
- text = Encoding.UTF8.GetString(rawData);
+ text = Encoding.UTF8.GetString(o.ToArray());
if (!text.Contains("\r"))
text = text.Replace("\n", "\r\n");
break;