allow us to get the build number for snapshots
This commit is contained in:
parent
a0a963abef
commit
dfcebc3f48
|
|
@ -11,6 +11,7 @@ using Mono.Nat;
|
|||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using static NovetusCMD.CommandLineArguments;
|
||||
using System.Reflection;
|
||||
|
||||
namespace NovetusCMD
|
||||
{
|
||||
|
|
@ -190,7 +191,7 @@ namespace NovetusCMD
|
|||
public static void Main(string[] args)
|
||||
{
|
||||
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
|
||||
string version = lines[0];
|
||||
string version = lines[0].Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString());
|
||||
GlobalVars.DefaultClient = lines[1];
|
||||
GlobalVars.DefaultMap = lines[2];
|
||||
GlobalVars.RegisterClient1 = lines[3];
|
||||
|
|
|
|||
|
|
@ -361,8 +361,8 @@ namespace NovetusLauncher
|
|||
void MainFormLoad(object sender, EventArgs e)
|
||||
{
|
||||
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
|
||||
string version = lines[0];
|
||||
GlobalVars.DefaultClient = lines[1];
|
||||
string version = lines[0].Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString());
|
||||
GlobalVars.DefaultClient = lines[1];
|
||||
GlobalVars.DefaultMap = lines[2];
|
||||
GlobalVars.RegisterClient1 = lines[3];
|
||||
GlobalVars.RegisterClient2 = lines[4];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace NovetusLauncher
|
||||
|
|
@ -32,7 +33,7 @@ namespace NovetusLauncher
|
|||
private void NovetusSDK_Load(object sender, EventArgs e)
|
||||
{
|
||||
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
|
||||
string version = lines[0];
|
||||
string version = lines[0].Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString());
|
||||
Text = "Novetus SDK " + version;
|
||||
label1.Text = version;
|
||||
GlobalVars.Version = version;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace NovetusLauncher
|
|||
private void SplashTester_Load(object sender, EventArgs e)
|
||||
{
|
||||
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
|
||||
string version = lines[0];
|
||||
string version = lines[0].Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString());
|
||||
GlobalVars.DefaultClient = lines[1];
|
||||
GlobalVars.DefaultMap = lines[2];
|
||||
GlobalVars.SelectedClient = GlobalVars.DefaultClient;
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ namespace NovetusLauncher
|
|||
void LoaderFormLoad(object sender, EventArgs e)
|
||||
{
|
||||
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt");
|
||||
GlobalVars.Version = lines[0];
|
||||
GlobalVars.Version = lines[0].Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString());
|
||||
GlobalVars.DefaultClient = lines[1];
|
||||
GlobalVars.DefaultMap = lines[2];
|
||||
GlobalVars.RegisterClient1 = lines[3];
|
||||
|
|
|
|||
Loading…
Reference in New Issue