This commit is contained in:
Bitl 2020-05-15 14:16:09 -07:00
parent 95630fd703
commit a88c23ddfd
20 changed files with 192 additions and 68 deletions

View File

@ -447,13 +447,13 @@ namespace NovetusCMD
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1));
string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1, true));
string[] lines2 = {
SecurityFuncs.Base64Encode("localhost"),
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2));
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2, true));
string text = GlobalVars.MultiLine(
"Process ID: " + (LocalVars.ProcessID == 0 ? "N/A" : LocalVars.ProcessID.ToString()),

View File

@ -24,8 +24,8 @@ public class ClientScript
return result;
}
catch (Exception)
{
catch (Exception) when (!Env.Debugging)
{
return "%donothing%";
}
}

View File

@ -154,6 +154,7 @@ public class LauncherFuncs
if (string.IsNullOrWhiteSpace(Decryptline12))
{
GenerateTripcode();
ini.IniWriteValue(section, "PlayerTripcode", SecurityFuncs.Base64Encode(GlobalVars.PlayerTripcode.ToString()));
Decryptline12 = ini.IniReadValue(section, "PlayerTripcode");
}
@ -241,7 +242,7 @@ public class LauncherFuncs
bool bline11 = Convert.ToBoolean(Decryptline11);
GlobalVars.DisabledHelp = bline11;
if (string.IsNullOrWhiteSpace(Decryptline12))
if (string.IsNullOrWhiteSpace(SecurityFuncs.Base64Decode(Decryptline12)))
{
GenerateTripcode();
Config(GlobalVars.ConfigDir + "\\" + GlobalVars.ConfigName, true);

View File

@ -28,6 +28,7 @@
<Compile Include="$(MSBuildThisFileDirectory)TextLineRemover.cs" />
<Compile Include="$(MSBuildThisFileDirectory)TreeNodeHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UPnP.cs" />
<Compile Include="$(MSBuildThisFileDirectory)URI.cs" />
<Compile Include="$(MSBuildThisFileDirectory)WebServer.cs" />
</ItemGroup>
</Project>

View File

@ -59,7 +59,8 @@ public class SecurityFuncs
{
try
{
return base64EncodedData.Decrypt();
string decode = base64EncodedData.Decrypt();
return decode;
}
catch(Exception)
{
@ -68,9 +69,17 @@ public class SecurityFuncs
}
}
public static string Base64Encode(string plainText)
public static string Base64Encode(string plainText, bool oldVer = false)
{
return plainText.Crypt();
if (oldVer)
{
var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
return System.Convert.ToBase64String(plainTextBytes);
}
else
{
return plainText.Crypt();
}
}
public static bool IsBase64String(string s)
@ -79,16 +88,6 @@ public class SecurityFuncs
return (s.Length % 4 == 0) && Regex.IsMatch(s, @"^[a-zA-Z0-9\+/]*={0,3}$", RegexOptions.None);
}
public static void RegisterURLProtocol(string protocolName, string applicationPath, string description)
{
RegistryKey subKey = Registry.ClassesRoot.CreateSubKey(protocolName);
subKey.SetValue((string)null, (object)description);
subKey.SetValue("URL Protocol", (object)string.Empty);
Registry.ClassesRoot.CreateSubKey(protocolName + "\\Shell");
Registry.ClassesRoot.CreateSubKey(protocolName + "\\Shell\\open");
Registry.ClassesRoot.CreateSubKey(protocolName + "\\Shell\\open\\command").SetValue((string)null, (object)("\"" + applicationPath + "\" \"%1\""));
}
public static long UnixTimeNow()
{
var timeSpan = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0));
@ -221,8 +220,8 @@ public class SecurityFuncs
string[] a3 = a2.Split('<');
ipAddress = a3[0];
}
catch (Exception)
{
catch (Exception) when (!Env.Debugging)
{
ipAddress = "localhost";
}

View File

@ -0,0 +1,94 @@
using Microsoft.Win32;
using System;
using System.Windows.Forms;
//code based off https://stackoverflow.com/questions/35626050/registering-custom-url-handler-in-c-sharp-on-windows-8
namespace NovetusFuncs
{
public class URIReg
{
private static string _Protocol = "";
private static string _ProtocolHandler = "";
private static readonly string _launch = string.Format(
"{0}{1}{0} {0}%1{0}", (char)34, Application.ExecutablePath);
private static readonly Version _win8Version = new Version(6, 2, 9200, 0);
private static readonly bool _isWin8 =
Environment.OSVersion.Platform == PlatformID.Win32NT &&
Environment.OSVersion.Version >= _win8Version;
public URIReg(string protocol, string protocolhandle)
{
_Protocol = protocol;
_ProtocolHandler = protocolhandle;
}
public void Register()
{
if (_isWin8) RegisterWin8();
else RegisterWin7();
}
private static void RegisterWin7()
{
var regKey = Registry.ClassesRoot.CreateSubKey(_Protocol);
regKey.CreateSubKey("DefaultIcon")
.SetValue(null, string.Format("{0}{1},1{0}", (char)34,
Application.ExecutablePath));
regKey.SetValue(null, "URL:" + _Protocol + " Protocol");
regKey.SetValue("URL Protocol", "");
regKey = regKey.CreateSubKey(@"shell\open\command");
regKey.SetValue(null, _launch);
}
private static void RegisterWin8()
{
RegisterWin7();
var regKey = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Classes")
.CreateSubKey(_ProtocolHandler);
regKey.SetValue(null, _Protocol);
regKey.CreateSubKey("DefaultIcon")
.SetValue(null, string.Format("{0}{1},1{0}", (char)34,
Application.ExecutablePath));
regKey.CreateSubKey(@"shell\open\command").SetValue(null, _launch);
Registry.LocalMachine.CreateSubKey(string.Format(
@"SOFTWARE\{0}\{1}\Capabilities\ApplicationDescription\URLAssociations",
Application.CompanyName, Application.ProductName))
.SetValue(_Protocol, _ProtocolHandler);
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\RegisteredApplications")
.SetValue(Application.ProductName, string.Format(
@"SOFTWARE\{0}\Capabilities", Application.ProductName));
}
public void Unregister()
{
if (!_isWin8)
{
Registry.ClassesRoot.DeleteSubKeyTree(_Protocol, false);
return;
}
// extra work required.
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Classes")
.DeleteSubKeyTree(_ProtocolHandler, false);
Registry.LocalMachine.DeleteSubKeyTree(string.Format(@"SOFTWARE\{0}\{1}",
Application.CompanyName, Application.ProductName));
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\RegisteredApplications")
.DeleteValue(Application.ProductName);
}
}
}

View File

@ -2060,15 +2060,6 @@ namespace NovetusLauncher
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit();
this.SuspendLayout();
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "BC.png");
this.imageList1.Images.SetKeyName(1, "TBC.png");
this.imageList1.Images.SetKeyName(2, "OBC.png");
this.imageList1.ImageSize = new System.Drawing.Size(32,32);
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
@ -3437,8 +3428,7 @@ namespace NovetusLauncher
// button54
//
this.button54.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.button54.ImageKey = "OBC.png";
this.button54.ImageList = this.imageList1;
this.button54.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("OBC_legacy")));
this.button54.Location = new System.Drawing.Point(231, 31);
this.button54.Name = "button54";
this.button54.Size = new System.Drawing.Size(52, 62);
@ -3451,8 +3441,7 @@ namespace NovetusLauncher
// button53
//
this.button53.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.button53.ImageKey = "TBC.png";
this.button53.ImageList = this.imageList1;
this.button53.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("TBC_legacy")));
this.button53.Location = new System.Drawing.Point(174, 31);
this.button53.Name = "button53";
this.button53.Size = new System.Drawing.Size(52, 62);
@ -3465,8 +3454,7 @@ namespace NovetusLauncher
// button52
//
this.button52.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.button52.ImageKey = "BC.png";
this.button52.ImageList = this.imageList1;
this.button52.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BC_legacy")));
this.button52.Location = new System.Drawing.Point(116, 31);
this.button52.Name = "button52";
this.button52.Size = new System.Drawing.Size(52, 62);
@ -3670,7 +3658,7 @@ namespace NovetusLauncher
private System.Windows.Forms.Button button80;
private System.Windows.Forms.Button button79;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.ImageList imageList1;
public System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.Button button83;
private System.Windows.Forms.Button button82;
private System.Windows.Forms.Button button81;

View File

@ -40,10 +40,10 @@ namespace NovetusLauncher
}
else
{
Size = new Size(477, 272);
panel2.Visible = false;
Size = new Size(493, 311);
}
//
// TODO: Add constructor code after the InitializeComponent() call.
//

View File

@ -117,15 +117,16 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing">
<value>17, 17</value>
</metadata>
</data>
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACe
OAAAAk1TRnQBSQFMAgEBAwEAAWABAAFgAQABQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
OAAAAk1TRnQBSQFMAgEBAwEAAWABAAFkAQABQAEAAUABAAT/AQkBEAj/AUIBTQE2AQQGAAE2AQQCAAEo
BAABAQIAAUADAAEBAQABCAYAAUAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
@ -366,10 +367,9 @@
AQABPAEDAf8B4AYAAX8B/wHABAABHwH/CAAD/wHwAQABPgEDAf8B8AEAAQEB/gMAAv8B4AQAAT8B/wgA
A/8B+AEAAX4BAwH/AfgBAAEDAfwBBwH/Ac8C/wHwBAABPwH/CAAD/wH7AQAB/wEDAf8B/AEAAQcB/AEP
BP8B+AEAAQcCAAF/Af8IAAb/AQcB/wH8AQABDwH4AQ8E/wH8AQABHwHAAQEC/wgACf8BAAEfAfwBHwX/
AQABfwH4AQcC/wgACf8BgAF/Af4BPwv/CAAY/wgAGP8IABj/CAAL
AQABfwH4AQcC/wgACf8BgAF/Af4BPwv/CAAY/wgAGP8IABj/HgAL
</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAYAAAAAAAEAIADtggAAZgAAAICAAAABACAAKAgBAFODAABAQAAAAQAgAChCAAB7iwEAMDAAAAEA
@ -2595,4 +2595,14 @@
4wAA//8AAP//AAA=
</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="BC_legacy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\BC_legacy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="OBC_legacy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\OBC_legacy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TBC_legacy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\TBC_legacy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -157,7 +157,6 @@ namespace NovetusLauncher
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.button35 = new System.Windows.Forms.Button();
this.SettingsButton = new System.Windows.Forms.Button();
this.UAButton = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout();

View File

@ -238,13 +238,13 @@ namespace NovetusLauncher
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1));
string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1), true);
string[] lines2 = {
SecurityFuncs.Base64Encode("localhost"),
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2));
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2), true);
string[] text = {
"Client: " + GlobalVars.SelectedClient,
"IP: " + IP,
@ -602,7 +602,7 @@ namespace NovetusLauncher
LauncherFuncs.Config(GlobalVars.ConfigDir + "\\" + GlobalVars.ConfigName, true);
ConsolePrint("Config Saved.", 3);
}
void WriteCustomizationValues()
{
LauncherFuncs.Customization(GlobalVars.ConfigDir + "\\" + GlobalVars.ConfigNameCustomization, true);

View File

@ -11,7 +11,8 @@
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<AppDesignerFolder>Properties</AppDesignerFolder>
<ApplicationIcon>Resources\NovetusIcon.ico</ApplicationIcon>
<ApplicationIcon>
</ApplicationIcon>
<NoWin32Manifest>False</NoWin32Manifest>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<NoStdLib>False</NoStdLib>
@ -256,6 +257,30 @@
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="Resources\BC.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\BC.bmp" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\BC.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\OBC.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\TBC.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\BC_legacy.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\OBC_legacy.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\TBC_legacy.png" />
</ItemGroup>
<Import Project="..\NovetusFuncs\NovetusFuncs.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -211,6 +211,7 @@ namespace NovetusLauncher
//
// textBox2
//
this.textBox2.BackColor = System.Drawing.SystemColors.Control;
this.textBox2.Location = new System.Drawing.Point(309, 68);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
@ -302,28 +303,28 @@ namespace NovetusLauncher
// newToolStripMenuItem
//
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
this.newToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.newToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.newToolStripMenuItem.Text = "New";
this.newToolStripMenuItem.Click += new System.EventHandler(this.NewToolStripMenuItemClick);
//
// loadToolStripMenuItem
//
this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
this.loadToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.loadToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.LoadToolStripMenuItemClick);
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.saveToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.SaveToolStripMenuItemClick);
//
// saveAsTextFileToolStripMenuItem
//
this.saveAsTextFileToolStripMenuItem.Name = "saveAsTextFileToolStripMenuItem";
this.saveAsTextFileToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.saveAsTextFileToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.saveAsTextFileToolStripMenuItem.Text = "Save as Text File";
this.saveAsTextFileToolStripMenuItem.Click += new System.EventHandler(this.saveAsTextFileToolStripMenuItem_Click);
//
@ -346,7 +347,7 @@ namespace NovetusLauncher
this.studioToolStripMenuItem,
this.no3dToolStripMenuItem});
this.tagsToolStripMenuItem.Name = "tagsToolStripMenuItem";
this.tagsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.tagsToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.tagsToolStripMenuItem.Text = "Add Tags";
//
// clientToolStripMenuItem
@ -394,7 +395,7 @@ namespace NovetusLauncher
this.debuggingToolStripMenuItem,
this.argsToolStripMenuItem});
this.variablesToolStripMenuItem.Name = "variablesToolStripMenuItem";
this.variablesToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.variablesToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.variablesToolStripMenuItem.Text = "Add Variables";
//
// generalToolStripMenuItem
@ -946,7 +947,7 @@ namespace NovetusLauncher
// documentationToolStripMenuItem1
//
this.documentationToolStripMenuItem1.Name = "documentationToolStripMenuItem1";
this.documentationToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.documentationToolStripMenuItem1.Size = new System.Drawing.Size(157, 22);
this.documentationToolStripMenuItem1.Text = "Documentation";
this.documentationToolStripMenuItem1.Click += new System.EventHandler(this.documentationToolStripMenuItem_Click);
//

View File

@ -146,6 +146,7 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(ClientMD5))
{
textBox2.Text = ClientMD5.ToUpper(CultureInfo.InvariantCulture);
textBox2.BackColor = System.Drawing.Color.Lime;
SelectedClientMD5 = textBox2.Text.ToUpper(CultureInfo.InvariantCulture);
}
else
@ -158,6 +159,7 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(ClientScriptMD5))
{
textBox3.Text = ClientScriptMD5.ToUpper(CultureInfo.InvariantCulture);
textBox3.BackColor = System.Drawing.Color.Lime;
SelectedClientScriptMD5 = textBox3.Text.ToUpper(CultureInfo.InvariantCulture);
}
else
@ -230,6 +232,8 @@ namespace NovetusLauncher
textBox1.Text = SelectedClientDesc;
textBox4.Text = CustomArgs;
textBox5.Text = Warning;
textBox2.BackColor = System.Drawing.SystemColors.Control;
textBox3.BackColor = System.Drawing.SystemColors.Control;
}
void LoadToolStripMenuItemClick(object sender, EventArgs e)
@ -335,6 +339,8 @@ namespace NovetusLauncher
textBox5.Text = Warning;
}
}
textBox2.BackColor = System.Drawing.SystemColors.Control;
textBox3.BackColor = System.Drawing.SystemColors.Control;
}
void SaveToolStripMenuItemClick(object sender, EventArgs e)
@ -367,6 +373,8 @@ namespace NovetusLauncher
}
label9.Text = "v2";
textBox2.BackColor = System.Drawing.SystemColors.Control;
textBox3.BackColor = System.Drawing.SystemColors.Control;
}
void TextBox4TextChanged(object sender, EventArgs e)

View File

@ -1,5 +1,6 @@
using System;
using System.Windows.Forms;
using NovetusFuncs;
namespace NovetusURI
{
@ -16,8 +17,8 @@ namespace NovetusURI
{
try
{
string loadstring = GlobalVars.BasePath + "/" + AppDomain.CurrentDomain.FriendlyName;
SecurityFuncs.RegisterURLProtocol("Novetus", loadstring, "Novetus URI");
URIReg novURI = new URIReg("novetus","url.novetus");
novURI.Register();
MessageBox.Show("URI successfully installed and registered!", "Novetus - Install URI", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

View File

@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NovetusURI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("Novetus URI")]
[assembly: AssemblyDescription("URI registration utility for Novetus")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NovetusURI")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyCompany("Bitl")]
[assembly: AssemblyProduct("Novetus")]
[assembly: AssemblyCopyright("(c) Bitl 2018-2020. All rights to ROBLOX go to the ROBLOX Corporation.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -19,9 +19,6 @@ using System.Runtime.InteropServices;
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2070eaa6-7606-4006-a628-5705c24a3644")]
// Version information for an assembly consists of the following four values:
//
// Major Version
@ -32,5 +29,4 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.*")]

View File

@ -114,7 +114,7 @@ namespace NovetusURI
void StartGame()
{
string ExtractedArg = GlobalVars.SharedArgs.Replace("novetus://", "").Replace("novetus", "").Replace(":", "").Replace("/", "").Replace("?", "");
string ConvertedArg = SecurityFuncs.Base64Decode(ExtractedArg);
string ConvertedArg = SecurityFuncs.Base64DecodeOld(ExtractedArg);
string[] SplitArg = ConvertedArg.Split('|');
string ip = SecurityFuncs.Base64Decode(SplitArg[0]);
string port = SecurityFuncs.Base64Decode(SplitArg[1]);
@ -225,6 +225,7 @@ namespace NovetusURI
}
else
{
Visible = true;
if (GlobalVars.DiscordPresence)
{
label1.Text = "Starting Discord Rich Presence...";