Skip to content

Commit

Permalink
rm: bye gosu integration
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Nov 16, 2024
1 parent 61a42e1 commit c40b61c
Show file tree
Hide file tree
Showing 39 changed files with 1 addition and 3,687 deletions.
1 change: 1 addition & 0 deletions IGPlayerLoader/IGPlayerLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<ItemGroup>
Expand Down
16 changes: 0 additions & 16 deletions osu.Game.Rulesets.IGPlayer/Feature/FeatureManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using NetCoreServer;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
Expand All @@ -11,7 +10,6 @@ namespace osu.Game.Rulesets.IGPlayer.Feature;
public partial class FeatureManager : CompositeDrawable
{
public readonly BindableBool CanUseDBus = new(true);
public readonly BindableBool CanUseGlazerMemory = new(true);

public static FeatureManager? Instance { get; private set; }

Expand Down Expand Up @@ -46,19 +44,5 @@ public FeatureManager()
CanUseDBus.Value = false;
}
}

// Check GLazer
try
{
// 尝试加载Gosu集成所需的NetCoreServer,如果成功则代表安装了对应DLL
var server = new HttpServer("127.0.0.1", 32763);
}
catch (Exception e)
{
if (e is not TypeLoadException) return;

Logging.LogError(e, $"Unable to activate Gosu integration: {e.Message}");
CanUseGlazerMemory.Value = false;
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c40b61c

Please sign in to comment.