pkgs/osu-lazer: Remove random song button from footer

This also reorganises the other patch I apply.
This commit is contained in:
Simon Bruder 2021-04-09 12:09:45 +02:00
parent feb82fca2e
commit 62a17a54b4
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 42 additions and 3 deletions

View file

@ -1,8 +1,18 @@
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 diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs
index b1269e9..efeefa6 100644 index e1c7b67a8c..b290b0a01a 100644
--- a/osu.Game/OsuGameBase.cs --- a/osu.Game/OsuGameBase.cs
+++ b/osu.Game/OsuGameBase.cs +++ b/osu.Game/OsuGameBase.cs
@@ -109,15 +109,12 @@ public class OsuGameBase : Framework.Game, ICanAcceptFiles @@ -127,15 +127,12 @@ public class OsuGameBase : Framework.Game, ICanAcceptFiles
/// </summary> /// </summary>
public string VersionHash { get; private set; } public string VersionHash { get; private set; }
@ -19,3 +29,6 @@ index b1269e9..efeefa6 100644
var version = AssemblyVersion; var version = AssemblyVersion;
return $@"{version.Major}.{version.Minor}.{version.Build}"; return $@"{version.Major}.{version.Minor}.{version.Build}";
} }
--
2.29.3

View file

@ -0,0 +1,25 @@
From 60d879b1c35381fae221a4d38aba0959fda09e4a Mon Sep 17 00:00:00 2001
From: Simon Bruder <simon@sbruder.de>
Date: Fri, 9 Apr 2021 12:02:44 +0200
Subject: [PATCH 2/2] Remove random song button from footer
I often click it accidentally.
---
osu.Game/Screens/Select/SongSelect.cs | 1 -
1 file changed, 1 deletion(-)
diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs
index b7f7c40539..efcabed687 100644
--- a/osu.Game/Screens/Select/SongSelect.cs
+++ b/osu.Game/Screens/Select/SongSelect.cs
@@ -307,7 +307,6 @@ private void load(AudioManager audio, DialogOverlay dialog, OsuColour colours, S
protected virtual IEnumerable<(FooterButton, OverlayContainer)> CreateFooterButtons() => new (FooterButton, OverlayContainer)[]
{
(new FooterButtonMods { Current = Mods }, ModSelect),
- (new FooterButtonRandom { Action = triggerRandom }, null),
(new FooterButtonOptions(), BeatmapOptions)
};
--
2.29.3

View file

@ -1,6 +1,7 @@
{ osu-lazer }: { osu-lazer }:
osu-lazer.overrideAttrs (o: o // { osu-lazer.overrideAttrs (o: o // {
patches = o.patches ++ [ patches = o.patches ++ [
./disable-deployed-build.patch ./0001-Disable-deployed-build.patch
./0002-Remove-random-song-button-from-footer.patch
]; ];
}) })