diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-03-18 04:59:08 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-03-18 04:59:08 +0300 |
commit | e43315076cf71709358720214d4518282b0fd465 (patch) | |
tree | 4781cf531d3bcb9a427db0ca527daa5f87a3afdc /SelectModsForm.cs | |
parent | d1227b9af15cbf3fc8d09c1af0945b06457ef727 (diff) |
rc3
Diffstat (limited to 'SelectModsForm.cs')
-rw-r--r-- | SelectModsForm.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/SelectModsForm.cs b/SelectModsForm.cs index e87a41c1..3c9d7753 100644 --- a/SelectModsForm.cs +++ b/SelectModsForm.cs @@ -23,12 +23,7 @@ namespace com.clusterrr.hakchi_gui var modsList = new List<string>();
if (loadInstalledMods && MainForm.Clovershell.IsOnline)
{
- var mods = new MemoryStream();
- MainForm.Clovershell.Execute("ls /var/lib/hakchi/hmod/uninstall-*", null, mods, null, 1000, true);
- mods.Seek(0, SeekOrigin.Begin);
- var modsarr = new byte[mods.Length];
- mods.Read(modsarr, 0, (int)mods.Length);
- var modsstr = Encoding.UTF8.GetString(modsarr, 0, modsarr.Length);
+ var modsstr = MainForm.Clovershell.ExecuteSimple("ls /var/lib/hakchi/hmod/uninstall-*", 1000, true);
var installedMods = modsstr.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var mod in installedMods)
{
|