Skip to content

Commit

Permalink
Merge pull request #205 from SpaceWarpDev/v1.1.2
Browse files Browse the repository at this point in the history
V1.1.2
  • Loading branch information
cheese3660 authored Apr 9, 2023
2 parents 5b9d441 + df58ec3 commit 21301d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<SpaceWarpVersion>1.1.1</SpaceWarpVersion>
<SpaceWarpVersion>1.1.2</SpaceWarpVersion>
<TargetFramework>net472</TargetFramework>
<LangVersion>11</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand All @@ -12,7 +12,7 @@

<!--
Allows use of some newer C# language features that have compiler gates normally.
Do not modify the included types without checking that they don't require runtime support that doesn't exist.
Do not modify the included types without checking that they don't require runtime support that doesn't exist.
-->

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion SpaceWarpBuildTemplate/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Space-Warp is an API for KSP2 mod developers.",
"source": "https://github.com/SpaceWarpDev/SpaceWarp",
"version_check": "https://raw.githubusercontent.com/SpaceWarpDev/SpaceWarp/main/SpaceWarpBuildTemplate/swinfo.json",
"version": "1.1.1",
"version": "1.1.2",
"dependencies": [],
"ksp2_version": {
"min": "0",
Expand Down
9 changes: 8 additions & 1 deletion SpaceWarpPatcher/Patcher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -46,7 +47,13 @@ internal static class Delayer
public static void PatchChainloaderStart()
{
ChainloaderPatch.Logger = Logger.CreateLogSource("SW BIE Extensions");
ChainloaderPatch.DisabledPluginGuids = File.ReadAllLines(ChainloaderPatch.DisabledPluginsFilepath = Path.Combine(Paths.BepInExRootPath, "disabled_plugins.cfg"));
string disabledPluginsFilepath = Path.Combine(Paths.BepInExRootPath, "disabled_plugins.cfg");
if (!File.Exists(disabledPluginsFilepath))
{
File.Create(disabledPluginsFilepath).Dispose();
ChainloaderPatch.Logger.LogWarning("Disabled plugins file did not exist, created empty file at: " + disabledPluginsFilepath);
}
ChainloaderPatch.DisabledPluginGuids = File.ReadAllLines(disabledPluginsFilepath);
ChainloaderPatch.DisabledPlugins = new();
Harmony.CreateAndPatchAll(typeof(ChainloaderPatch));
}
Expand Down
1 change: 0 additions & 1 deletion builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def build(release=False):

print("=> Copying output template")
shutil.copytree(TEMPLATE_DIR, output_dir)
open(os.path.join(BUILD_DIR, "SpaceWarp", "BepInEx", "disabled_plugins.cfg"), 'a').close()

print(f"=> Executing: {' '.join(dotnet_args)}")

Expand Down

0 comments on commit 21301d4

Please sign in to comment.