Compare commits

..

3 Commits

Author SHA1 Message Date
Alex 7e51e2a0ea
Merge pull request #8 from casKd-dev/dev
Just a 1.14 release tag
2018-03-04 14:36:06 +01:00
Alex dc5a61c4bc
Stable version merge
Finally a stable version
2018-02-22 21:42:15 +01:00
Alex eba5206f0d
Merge pull request #6 from casKd-dev/dev
Overall Optimization
2018-02-11 14:36:59 +01:00
3 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,7 @@
<p align=center><img src="https://s14.postimg.org/x2qqyft69/banner.png"><br>
<img src="https://img.shields.io/travis/casKd-dev/USL/release.svg?style=for-the-badge"> <img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge"> <img src="https://img.shields.io/github/downloads/casKd-dev/USL/total.svg?style=for-the-badge"> <img src="https://img.shields.io/github/languages/top/casKd-dev/USL.svg?style=for-the-badge"> </p>
# USL
![Main Banner](https://s14.postimg.org/x2qqyft69/banner.png)
[![TravisCI build](https://travis-ci.org/casKd-dev/USL.svg?branch=dev)](https://travis-ci.org/casKd-dev/USL/builds/)
A Gameserver launcher written in C# .
This project aims to help people not as experienced with Unturned or computers in general.

View File

@ -29,7 +29,7 @@ namespace UnturnedSL
Run(valid, name, map, welcome, port, data, extralo, path);
}
static void Validation(string name, string map, string welcome, string port, string data, string extralo, string path, out bool valid)
static void Validation(string name, string map, string welcome, string port, string data, string extralo, string path,out bool valid)
/*Validate if all input is correct*/
{
/*Checks if every condition is true*/
@ -163,8 +163,8 @@ namespace UnturnedSL
"If you still get the problem, report it on GitHub!");
DisplayText(name, map, welcome, data, port, extralo, path);
Console.Beep(2300, 250);
Console.WriteLine(Environment.NewLine + "Press any key to exit...");
Console.ReadKey();
Environment.Exit(1);
}
else
{
@ -172,10 +172,10 @@ namespace UnturnedSL
Console.WriteLine("Welcome!" + Environment.NewLine);
DisplayText(name, map, welcome, data, port, extralo, path);
string launchop = "-nographics -batchmode -name " + "\"" + name + "\"" + " -map " + map + " -welcome " + "\"" + welcome + "\"" + " -port:" + port + " " + extralo + " +secureserver/" + data;
var proc = Process.Start(path + @"\Unturned.exe ", launchop);
proc.WaitForExit(600000);
Process.Start(path + @"\Unturned.exe ", launchop);
Console.ReadKey();
Environment.Exit(0);
}
Environment.Exit(0);
}
static void MkDirIfNotExist(string name)

View File

@ -38,7 +38,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>false</RunCodeAnalysis>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">