overlay: Add osu-lazer with faster start patch

This commit is contained in:
Simon Bruder 2021-01-07 17:28:08 +01:00
parent f5b383ddbc
commit a1efb5faa1
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,5 @@
self: super: {
bwrap-helper = super.callPackage ./bwrap-helper { };
osu-lazer = super.callPackage ./osu-lazer { inherit (super) osu-lazer; };
}

View file

@ -0,0 +1,6 @@
{ osu-lazer }:
osu-lazer.overrideAttrs (o: o // {
patches = o.patches ++ [
./disable-deployed-build.patch
];
})

View file

@ -0,0 +1,21 @@
diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs
index b1269e9..efeefa6 100644
--- a/osu.Game/OsuGameBase.cs
+++ b/osu.Game/OsuGameBase.cs
@@ -109,15 +109,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}";
}