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

Commit 66b5f20

Browse files
committed
Merge branch 'master' of https://github.com/Natanel-Shitrit/SPCode into Natanel-Shitrit-master
2 parents eb9a29d + 1326911 commit 66b5f20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+216
-196
lines changed

App/AssemblyInfo1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("Spcode")]
8+
[assembly: AssemblyTitle("SPCode")]
99
[assembly: AssemblyDescription("SPCode - a lightweight sourcepawn editor")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]

Deploy/Compress.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$loc = Get-Location
22
Set-Location 'bin\Release\'
33
$compress = @{
4-
LiteralPath= "sourcepawn/", "Spcode.exe", "MahApps.Metro.dll", "ICSharpCode.AvalonEdit.dll", "System.Windows.Interactivity.dll", "Xceed.Wpf.AvalonDock.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "smxdasm.dll", "LysisForSpedit.dll", "QueryMaster.dll", "Ionic.BZip2.dll", "SourcepawnCondenser.dll", "Renci.SshNet.dll", "Newtonsoft.Json.dll", "DiscordRPC.dll", "ControlzEx.dll", "Octokit.dll", "Microsoft.WindowsAPICodePack.dll", "Microsoft.WindowsAPICodePack.Shell.dll", "lang_0_spcode.xml", "GPLv3.txt"
4+
LiteralPath= "sourcepawn/", "SPCode.exe", "MahApps.Metro.dll", "ICSharpCode.AvalonEdit.dll", "System.Windows.Interactivity.dll", "Xceed.Wpf.AvalonDock.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "smxdasm.dll", "LysisForSpedit.dll", "QueryMaster.dll", "Ionic.BZip2.dll", "SourcepawnCondenser.dll", "Renci.SshNet.dll", "Newtonsoft.Json.dll", "DiscordRPC.dll", "ControlzEx.dll", "Octokit.dll", "Microsoft.WindowsAPICodePack.dll", "Microsoft.WindowsAPICodePack.Shell.dll", "lang_0_spcode.xml", "GPLv3.txt"
55
#Path= "sourcepawn/"
66
#CompressionLevel = "Fastest"
77
DestinationPath = "SPCode.Portable.zip"

Deploy/SPCode.nsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SetOutPath $INSTDIR
3838
!insertmacro CheckNetFramework 48
3939

4040

41-
File Spcode.exe
41+
File SPCode.exe
4242
File MahApps.Metro.dll
4343
File ICSharpCode.AvalonEdit.dll
4444
File System.Windows.Interactivity.dll
@@ -77,7 +77,7 @@ File /r ".\sourcepawn"
7777
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "DisplayName" "SPCode - A lightweight sourcepawn editor"
7878
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "UninstallString" "$INSTDIR\uninstall.exe"
7979
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "InstallLocation" "$INSTDIR"
80-
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "DisplayIcon" "$INSTDIR\Spcode.exe"
80+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "DisplayIcon" "$INSTDIR\SPCode.exe"
8181
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "Publisher" "Hexah"
8282
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "DisplayVersion" "1.6.x.x"
8383
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode" "NoModify" 1
@@ -90,33 +90,33 @@ SectionEnd
9090

9191
Section "File Association (.sp)" prog02
9292
SectionIn 1
93-
${registerExtension} "$INSTDIR\Spcode.exe" ".sp" "Sourcepawn Script"
93+
${registerExtension} "$INSTDIR\SPCode.exe" ".sp" "Sourcepawn Script"
9494
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
9595
SectionEnd
9696

9797

9898
Section "File Association (.inc)" prog03
9999
SectionIn 1
100-
${registerExtension} "$INSTDIR\Spcode.exe" ".inc" "Sourcepawn Include-File"
100+
${registerExtension} "$INSTDIR\SPCode.exe" ".inc" "Sourcepawn Include-File"
101101
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
102102
SectionEnd
103103

104104

105105
Section "File Association (.smx)" prog04
106106
SectionIn 1
107-
${registerExtension} "$INSTDIR\Spcode.exe" ".smx" "Sourcemod Plugin"
107+
${registerExtension} "$INSTDIR\SPCode.exe" ".smx" "Sourcemod Plugin"
108108
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
109109
SectionEnd
110110

111111

112112
Section "Desktop Shortcut" prog05
113113
SectionIn 1
114-
CreateShortCut "$DESKTOP\SPCode.lnk" "$INSTDIR\Spcode.exe" ""
114+
CreateShortCut "$DESKTOP\SPCode.lnk" "$INSTDIR\SPCode.exe" ""
115115
SectionEnd
116116

117117
Section "Startmenu Shortcut" prog06
118118
SectionIn 1
119-
CreateShortCut "$SMPROGRAMS\SPCode.lnk" "$INSTDIR\Spcode.exe" ""
119+
CreateShortCut "$SMPROGRAMS\SPCode.lnk" "$INSTDIR\SPCode.exe" ""
120120
SectionEnd
121121

122122
Section "Uninstall"
@@ -125,7 +125,7 @@ Delete $INSTDIR\uninstall.exe
125125

126126

127127

128-
Delete $INSTDIR\Spcode.exe
128+
Delete $INSTDIR\SPCode.exe
129129
Delete $INSTDIR\MahApps.Metro.dll
130130
Delete $INSTDIR\ICSharpCode.AvalonEdit.dll
131131
Delete $INSTDIR\System.Windows.Interactivity.dll

Interop/ConfigControl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using System.Windows;
66
using System.Xml;
77
using SourcepawnCondenser.SourcemodDefinition;
8-
using Spcode.Utils;
8+
using SPCode.Utils;
99

10-
namespace Spcode.Interop
10+
namespace SPCode.Interop
1111
{
1212
public static class ConfigLoader
1313
{

Interop/OptionsControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Security.Cryptography;
55
using System.Windows.Media;
66

7-
namespace Spcode //leave this here instead of .Interop because of reasons...
7+
namespace SPCode //leave this here instead of .Interop because of reasons...
88
{
99
[Serializable]
1010
public class OptionsControl

Interop/PipeInteropClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO.Pipes;
44
using System.Text;
55

6-
namespace Spcode.Interop
6+
namespace SPCode.Interop
77
{
88
public static class PipeInteropClient
99
{
@@ -18,7 +18,7 @@ public static void ConnectToMasterPipeAndSendData(string data)
1818
stream.Write(stringLengthData, 0, stringLengthData.Length);
1919
stream.Write(stringData, 0, stringData.Length);
2020
}
21-
using (NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", "SpcodeNamedPipeServer", PipeDirection.Out, PipeOptions.Asynchronous))
21+
using (NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", "SPCodeNamedPipeServer", PipeDirection.Out, PipeOptions.Asynchronous))
2222
{
2323
pipeClient.Connect(5000);
2424
pipeClient.Write(array, 0, array.Length);

Interop/PipeInteropServer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
using Spcode.UI;
1+
using SPCode.UI;
22
using System;
33
using System.IO.Pipes;
44
using System.Text;
55

6-
namespace Spcode.Interop
6+
namespace SPCode.Interop
77
{
88
public class PipeInteropServer : IDisposable
99
{
@@ -37,7 +37,7 @@ private void StartInteropServer()
3737
pipeServer.Close();
3838
pipeServer = null;
3939
}
40-
pipeServer = new NamedPipeServerStream("SpcodeNamedPipeServer", PipeDirection.In, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
40+
pipeServer = new NamedPipeServerStream("SPCodeNamedPipeServer", PipeDirection.In, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
4141
pipeServer.BeginWaitForConnection(new AsyncCallback(PipeConnection_MessageIn), null);
4242
}
4343

Interop/TranslationProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Xml;
99
using System.Windows;
1010

11-
namespace Spcode.Interop
11+
namespace SPCode.Interop
1212
{
1313
public class TranslationProvider
1414
{

Interop/Updater/UpdateCheck.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Threading.Tasks;
55
using Octokit;
66

7-
namespace Spcode.Interop.Updater
7+
namespace SPCode.Interop.Updater
88
{
99
public static class UpdateCheck
1010
{
@@ -64,7 +64,7 @@ private static bool IsUpToDate(Version currentVer, Version latestVer)
6464
private static async Task<Release> GetLatest()
6565
{
6666
var client = new GitHubClient(new ProductHeaderValue("spcode-client"));
67-
var releases = await client.Repository.Release.GetAll("Hexer10", "Spcode");
67+
var releases = await client.Repository.Release.GetAll("Hexer10", "SPCode");
6868
return releases[0];
6969
}
7070
}

Interop/Updater/UpdateInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Linq;
22
using Octokit;
33

4-
namespace Spcode.Interop.Updater
4+
namespace SPCode.Interop.Updater
55
{
66
public class UpdateInfo
77
{
@@ -16,6 +16,6 @@ public class UpdateInfo
1616
public bool SkipDialog = false;
1717
public bool WriteAble = true;
1818

19-
public ReleaseAsset Asset => Release.Assets.FirstOrDefault(e => e.Name == "SpcodeUpdater.exe");
19+
public ReleaseAsset Asset => Release.Assets.FirstOrDefault(e => e.Name == "SPCodeUpdater.exe");
2020
}
2121
}

0 commit comments

Comments
 (0)