Browse Source

Disabled BeatMods updater

pull/94/head
Anairkoen Schno 3 years ago
parent
commit
a92eabee0a
Signed by: DaNike GPG Key ID: BEFB74D5F3FC4387
3 changed files with 14 additions and 5 deletions
  1. +4
    -3
      IPA.Injector/Updates.cs
  2. +8
    -2
      IPA.Loader/IPA.Loader.csproj
  3. +2
    -0
      IPA.Loader/Loader/PluginComponent.cs

+ 4
- 3
IPA.Injector/Updates.cs View File

@ -11,13 +11,14 @@ using Net3_Proxy;
using Path = Net3_Proxy.Path;
using File = Net3_Proxy.File;
using Directory = Net3_Proxy.Directory;
using Array = Net3_Proxy.Array;
#endif
namespace IPA.Injector
{
internal static class Updates
{
private const string DeleteFileName = Updating.BeatMods.Updater.SpecialDeletionsFile;
private const string DeleteFileName = "$$delete";
public static void InstallPendingUpdates()
{
@ -35,7 +36,7 @@ namespace IPA.Injector
if (ipaVersion > selfVersion)
{
Process.Start(new ProcessStartInfo
_ = Process.Start(new ProcessStartInfo
{
FileName = path,
Arguments = $"\"-nw={Process.GetCurrentProcess().Id},s={string.Join(" ", Environment.GetCommandLineArgs().Skip(1).StrJP()).Replace("\\", "\\\\").Replace(",", "\\,")}\"",
@ -55,7 +56,7 @@ namespace IPA.Injector
// there are pending updates, install
updater.Info("Installing pending updates");
var toDelete = new string[0];
var toDelete = Array.Empty<string>();
var delFn = Path.Combine(pendingDir, DeleteFileName);
if (File.Exists(delFn))
{


+ 8
- 2
IPA.Loader/IPA.Loader.csproj View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Common.props"/>
<Import Project="..\Common.props" />
<PropertyGroup>
<TargetFrameworks>net461;net35</TargetFrameworks>
@ -62,7 +62,13 @@
<EmbeddedResource Include="icon_white.png" />
<EmbeddedResource Include="Loader\description.md" />
</ItemGroup>
<!-- disable the updater -->
<ItemGroup>
<Compile Remove="Updating\BeatMods\*.cs" />
<None Include="Updating\BeatMods\*.cs" />
</ItemGroup>
<Import Project="..\Common.targets"/>
<Import Project="..\Common.targets" />
</Project>

+ 2
- 0
IPA.Loader/Loader/PluginComponent.cs View File

@ -39,9 +39,11 @@ namespace IPA.Loader
ipaPlugins = new CompositeIPAPlugin(PluginManager.Plugins);
#pragma warning restore 618
/*
#if BeatSaber // TODO: remove this
gameObject.AddComponent<Updating.BeatMods.Updater>();
#endif
*/
bsPlugins.OnEnable();
ipaPlugins.OnApplicationStart();


Loading…
Cancel
Save