overlay: Add osu-lazer with faster start patch
This commit is contained in:
parent
f5b383ddbc
commit
a1efb5faa1
|
@ -1,3 +1,5 @@
|
|||
self: super: {
|
||||
bwrap-helper = super.callPackage ./bwrap-helper { };
|
||||
|
||||
osu-lazer = super.callPackage ./osu-lazer { inherit (super) osu-lazer; };
|
||||
}
|
||||
|
|
6
pkgs/osu-lazer/default.nix
Normal file
6
pkgs/osu-lazer/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ osu-lazer }:
|
||||
osu-lazer.overrideAttrs (o: o // {
|
||||
patches = o.patches ++ [
|
||||
./disable-deployed-build.patch
|
||||
];
|
||||
})
|
21
pkgs/osu-lazer/disable-deployed-build.patch
Normal file
21
pkgs/osu-lazer/disable-deployed-build.patch
Normal 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}";
|
||||
}
|
Loading…
Reference in a new issue