Skip to content

Commit fc794eb

Browse files
committed
gg
1 parent 1194d8a commit fc794eb

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

Server/OsuManiaLoader/Loader.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ public Loader()
6363

6464
BeatmapPacks.Add(pack);
6565
pack.PackId = pack.Beatmaps.Select(btm => btm.BeatmapSetId).First();
66-
pack.BackgroundImages =
67-
pack.Beatmaps.Select(btm => btm.BackgroundImage).Where(i => i != null).ToArray();
68-
66+
pack.BackgroundImages = pack.Beatmaps.Select(btm => btm.BackgroundImage).Where(i => i != null).ToArray();
6967
var BPMs = pack.Beatmaps.Select(btm => (int)Stuff.CalculateBpm(btm.TimingPoints[0])).ToArray();
68+
7069
pack.MaxBpm = BPMs.Max();
7170
pack.MinBpm = BPMs.Min();
7271
}

Server/Server.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public class Server : BaseUnityPlugin
3232
public static bool Debug { get => _Debug.Value; }
3333
public static bool CheckForUpdates { get => _CheckForUpdates.Value; }
3434

35-
35+
3636
private void Awake()
3737
{
38-
_EnableManiaLoader = Config.Bind("General", "EnableManiaLoader", false, "Enables/Disables loading osu!mania beatmaps into the game.");
38+
_EnableManiaLoader = Config.Bind("General", "EnableManiaLoader", true, "Enables/Disables loading osu!mania beatmaps into the game.");
3939
_Debug = Config.Bind("General", "EnableDebug", false, "Enables/Disables debugging messages and utils.");
4040
_CheckForUpdates = Config.Bind("General", "CheckForUpdates", true, "Enables/Disables checking for updates.");
4141

@@ -113,15 +113,15 @@ private void OnApplicationQuit()
113113
ShuttingDown = true;
114114
DiscordRichPresence.Data._activityManager.ClearActivity(_ => { });
115115
DiscordRichPresence.Data.Poll();
116+
117+
if (!Debug) return;
116118

117119
if (Debug && _process != null)
118120
{
119121
_process.Kill();
120122
_process = null;
121123
}
122124

123-
if (!Debug) return;
124-
125125
var commands = new List<string>();
126126
var filter = new List<string>();
127127

Server/Server.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
<LangVersion>latest</LangVersion>
99
</PropertyGroup>
10-
<ItemGroup>
11-
<None Remove="OsuManiaLoader\LICENCE" />
12-
</ItemGroup>
1310

1411
<ItemGroup>
1512
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
1613
<PackageReference Include="BepInEx.Core" Version="5.*" />
1714
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
18-
<!-- <PackageReference Include="ILRepack.Lib.MSBuild" Version="2.1.18" />-->
1915
<PackageReference Include="UnityEngine.Modules" Version="5.6.0" IncludeAssets="compile" />
2016
</ItemGroup>
2117

@@ -54,6 +50,6 @@
5450
</ItemGroup>
5551

5652
<Target Name="PostBuild" AfterTargets="Build">
57-
<Exec Command="python -c &quot;os = __import__('os'); exit() if len(os.getenv('release-action', '')) else None; copy = __import__('shutil').copy; arg= __import__('sys').argv[1].replace('\&quot;', ''); a = r'D:\Directories\Downloads\INVAXION Development\INVAXION\BepInEx\plugins'; b = r'C:\Games\INVAXION\BepInEx\plugins'; path = (a if os.path.exists(a) else b); copy(os.path.join(arg, 'ServerEmulator.dll'), path); print('Copied the file!')&quot; &quot;$(TargetDir)&quot;&#xA;&#xA;rem os.remove(os.path.join(arg, 'ServerEmulator.dll')); os.replace(os.path.join(arg, 'ServerEmulatorFinal.dll'), os.path.join(arg, 'ServerEmulator.dll')); &#xA;rem This is evil, I know..." />
53+
<Exec Command="python -c &quot;os = __import__('os'); exit() if len(os.getenv('release-action', '')) else None; copy = __import__('shutil').copy; arg= __import__('sys').argv[1].replace('\&quot;', ''); a = r'D:\Directories\Downloads\INVAXION Development\INVAXION\BepInEx\plugins'; b = r'C:\Games\INVAXION\BepInEx\plugins'; path = (a if os.path.exists(a) else b); copy(os.path.join(arg, 'ServerEmulator.dll'), path); print('Copied the file!')&quot; &quot;$(TargetDir)&quot;&#xA;&#xA;rem This is evil, I know..." />
5854
</Target>
5955
</Project>

0 commit comments

Comments
 (0)