Skip to content

Commit

Permalink
license
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Jan 22, 2017
1 parent e32675f commit f1cac97
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 22 deletions.
19 changes: 4 additions & 15 deletions Injector/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.Reflection;
using System.Text;
using System.Threading;

namespace Rynchodon.Injector
{
Expand Down Expand Up @@ -72,22 +71,12 @@ public bool Match(string arg)

static void Main(string[] args)
{
try
if (args == null || args.Length == 0)
{
if (args == null || args.Length == 0)
{
DllInjector.Run();
return;
}
Parse(args);
Thread.Sleep(2000);
}
catch (Exception ex)
{
Console.Error.WriteLine(ex);
Thread.Sleep(60000);
throw;
DllInjector.Run();
return;
}
Parse(args);
}

private static SortedDictionary<OptionName, Option> GetOptions()
Expand Down
2 changes: 1 addition & 1 deletion Injector/Injector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\global.config" />
<PropertyGroup>
<PostBuildEvent>start cmd.exe /C ""$(ReferencePath)\LoadArms.exe" --author=Rynchodon --repo=Load-ARMS --allBuilds LoadARMS.exe LoadArms.dll "..\..\..\..\Load-ARMS Readme.txt""</PostBuildEvent>
<PostBuildEvent>start cmd.exe /C ""$(ReferencePath)\LoadArms.exe" --author=Rynchodon --repo=Load-ARMS --allBuilds LoadARMS.exe LoadArms.dll "..\..\..\..\Load-ARMS Readme.txt" "..\..\..\..\Load-ARMS License.txt""</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>
Expand Down
2 changes: 1 addition & 1 deletion Injector/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// 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("0.5.0.4")]
[assembly: AssemblyVersion("0.5.1.0")]
File renamed without changes.
2 changes: 1 addition & 1 deletion Loader/DownloadProgress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Rynchodon.Loader
{
/// <summary>
/// Creates a GUI screen to show download progress.
/// Creates a GUI screen to show download progress. This screen prevents the player from doing anything until it closes.
/// </summary>
class DownloadProgress : MyGuiScreenProgressAsync, IDisposable
{
Expand Down
7 changes: 5 additions & 2 deletions Loader/LoadArms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ private void Robocopy()
return;
_startedRobocopy = true;

string license = PathExtensions.Combine(_directory, "mods\\Rynchodon.Load-ARMS\\Load-ARMS License.txt");
if (File.Exists(license))
File.Copy(license, PathExtensions.Combine(_directory, "License.txt"), true);

Logger.WriteLine("starting robocopy");

string first = '"' + _directory + "mods\\Rynchodon.Load-ARMS\" \"" + _directory + "..\\";
Expand Down Expand Up @@ -258,7 +262,6 @@ void IPlugin.Update()
foreach (IPlugin plugin in _plugins)
plugin.Init(MySandboxGame.Static);

_directory = null;
_config = default(Config);
_data = default(Data);
_task = default(ParallelTasks.Task);
Expand Down Expand Up @@ -519,7 +522,7 @@ private void Cleanup()
{
string myDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\";

foreach (string fileName in new string[] { "ARMS.dll", "ARMS - Release Notes.txt", "ExtendWhitelist.exe", "ExtendWhitelist.dll", "ExtendWhitelist.log", "LoadARMS.log" , "Load-ARMS Readme.txt" })
foreach (string fileName in new string[] { "ARMS.dll", "ARMS - Release Notes.txt", "ExtendWhitelist.exe", "ExtendWhitelist.dll", "ExtendWhitelist.log", "LoadARMS.log", "Load-ARMS Readme.txt", "Load-ARMS License.txt" })
{
string fullPath = myDirectory + fileName;
if (File.Exists(fullPath))
Expand Down
3 changes: 3 additions & 0 deletions Loader/PathExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ static class PathExtensions
/// <returns>The combined paths.</returns>
public static string Combine(params string[] pathParts)
{
if (pathParts == null)
throw new ArgumentNullException("pathParts");

int index = 0;
string path = pathParts[index];
if (path == null)
Expand Down
2 changes: 1 addition & 1 deletion Loader/ReleaseCreater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static void Publish(ModVersion modVersion, string directory, string oAuth
compress.Wait();

if (input.ZipFileName == null)
input.ZipFileName = modVersion.fullName + ".zip";
input.ZipFileName = modVersion.repository + ".zip";
else if (!input.ZipFileName.EndsWith(".zip"))
input.ZipFileName = input.ZipFileName + ".zip";

Expand Down
2 changes: 1 addition & 1 deletion Publish.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd Injector\bin\x64\Release
"C:\Games\Steam\SteamApps\common\SpaceEngineers\Bin64\LoadArms.exe" --author=Rynchodon --repo=Load-ARMS --allBuilds --publish LoadARMS.exe LoadArms.dll "..\..\..\..\Load-ARMS Readme.txt"
"C:\Games\Steam\SteamApps\common\SpaceEngineers\Bin64\LoadArms.exe" --author=Rynchodon --repo=Load-ARMS --allBuilds --publish LoadARMS.exe LoadArms.dll "..\..\..\..\Load-ARMS Readme.txt" "..\..\..\..\Load-ARMS License.txt"

0 comments on commit f1cac97

Please sign in to comment.