1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-02-25 17:03:13 +00:00

Fixed customization path.

This commit is contained in:
Ylian Saint-Hilaire
2021-03-02 16:25:58 -08:00
parent b818675738
commit 31a62a585f
4 changed files with 17 additions and 15 deletions

View File

@@ -1,12 +1,13 @@
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System.Net.Security;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace MeshCentralRouter
{
@@ -29,7 +30,8 @@ namespace MeshCentralRouter
try
{
string[] lines = File.ReadAllLines(@"customization\customize.txt");
FileInfo selfExe = new FileInfo(Assembly.GetExecutingAssembly().Location);
string[] lines = File.ReadAllLines(Path.Combine(selfExe.Directory.FullName, @"customization\customize.txt"));
if (lines[4] != "") { this.Text = lines[4]; }
if (lines[5] != "") { mainLabel.Text = lines[5]; }
}