Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 3eced7b

Browse files
committed
implemented IsLocalInstallation detection
1 parent 7f54637 commit 3eced7b

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Program.cs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
using DiscordRPC;
2-
using MahApps.Metro;
3-
using SPCode.Interop;
4-
using SPCode.Interop.Updater;
5-
using SPCode.UI;
6-
using SPCode.UI.Interop;
7-
using System;
1+
using System;
82
using System.Globalization;
93
using System.IO;
104
using System.Reflection;
11-
using System.Runtime;
125
using System.Text;
136
using System.Threading;
14-
using System.Threading.Tasks;
157
using System.Windows;
168
using System.Windows.Interop;
179
using System.Windows.Media;
10+
using DiscordRPC;
11+
using MahApps.Metro;
12+
using SPCode.Interop;
13+
using SPCode.Interop.Updater;
14+
using SPCode.UI;
15+
using SPCode.Utils;
1816

1917
namespace SPCode
2018
{
@@ -36,6 +34,8 @@ public static class Program
3634
? new string(' ', OptionsObject.Editor_IndentationSize)
3735
: "\t";
3836

37+
public static bool _IsLocalInstallation;
38+
3939
[STAThread]
4040
public static void Main(string[] args)
4141
{
@@ -82,6 +82,8 @@ public static void Main(string[] args)
8282
});
8383
}
8484

85+
_IsLocalInstallation = Paths.IsLocalInstallation();
86+
8587
Translations = new TranslationProvider();
8688
Translations.LoadLanguage(OptionsObject.Language, true);
8789
foreach (var arg in args)

0 commit comments

Comments
 (0)