39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using VRage.Plugins;
|
|
using SpaceEngineers;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using System.Threading;
|
|
|
|
|
|
namespace Lunar.UplinkLauncher
|
|
{
|
|
internal class UplinkLauncher
|
|
{
|
|
public static int Main(string[] args)
|
|
{
|
|
string exeLocation = Path.GetDirectoryName(Path.GetFullPath(Assembly.GetExecutingAssembly().Location));
|
|
|
|
List<string> plugins = new List<string>();
|
|
//MANUALLY ADDED, REMOVE LATER
|
|
plugins.Add("C:\\Users\\Lunar\\Games\\Steam\\steamapps\\common\\SpaceEngineers\\Bin64\\Plugins\\Local\\ModelSwap.dll");
|
|
plugins.Add("C:\\Users\\Lunar\\Games\\Steam\\steamapps\\common\\SpaceEngineers\\Bin64\\Plugins\\Local\\DontTellMeWhatToBuild.dll");
|
|
MyPlugins.RegisterUserAssemblyFiles(plugins);
|
|
|
|
string appIdFile = Path.Combine(exeLocation, "steam_appid.txt");
|
|
if (!File.Exists(appIdFile))
|
|
{
|
|
File.WriteAllText(appIdFile, "244850");
|
|
}
|
|
|
|
MyProgram.Main(args);
|
|
return 0;
|
|
}
|
|
}
|
|
}
|