nixos-config/pkgs/osu-lazer/0001-Disable-deployed-build.patch
Simon Bruder 62a17a54b4
pkgs/osu-lazer: Remove random song button from footer
This also reorganises the other patch I apply.
2021-04-09 12:09:45 +02:00

35 lines
1.2 KiB
Diff

From 07c5ef34d1f7870de87df93751ee155d88c4fa61 Mon Sep 17 00:00:00 2001
From: Simon Bruder <simon@sbruder.de>
Date: Fri, 9 Apr 2021 12:01:42 +0200
Subject: [PATCH 1/2] Disable deployed build
It shows warnings at startup which prolong the time it takes to start.
---
osu.Game/OsuGameBase.cs | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs
index e1c7b67a8c..b290b0a01a 100644
--- a/osu.Game/OsuGameBase.cs
+++ b/osu.Game/OsuGameBase.cs
@@ -127,15 +127,12 @@ public class OsuGameBase : Framework.Game, ICanAcceptFiles
/// </summary>
public string VersionHash { get; private set; }
- public bool IsDeployedBuild => AssemblyVersion.Major > 0;
+ public bool IsDeployedBuild => false;
public virtual string Version
{
get
{
- if (!IsDeployedBuild)
- return @"local " + (DebugUtils.IsDebugBuild ? @"debug" : @"release");
-
var version = AssemblyVersion;
return $@"{version.Major}.{version.Minor}.{version.Build}";
}
--
2.29.3