From b9f2230d5f718998d67f533ce9d672f9db129275 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jul 2022 20:38:38 +0200 Subject: [PATCH] pkgs/osu-lazer: Rebase patches --- pkgs/osu-lazer/0001-Disable-deployed-build.patch | 14 ++++++++------ ...002-Remove-random-song-button-from-footer.patch | 8 ++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/osu-lazer/0001-Disable-deployed-build.patch b/pkgs/osu-lazer/0001-Disable-deployed-build.patch index 7d823f2..b647386 100644 --- a/pkgs/osu-lazer/0001-Disable-deployed-build.patch +++ b/pkgs/osu-lazer/0001-Disable-deployed-build.patch @@ -1,4 +1,4 @@ -From 222a609074c2394b1d335271c9d705e07084fd33 Mon Sep 17 00:00:00 2001 +From ba1b9a0549968992b34093f587fde5570dd4dfe2 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 9 Apr 2021 12:01:42 +0200 Subject: [PATCH 1/2] Disable deployed build @@ -9,17 +9,19 @@ It shows warnings at startup which prolong the time it takes to start. 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs -index f2d575550a..e2f81d068c 100644 +index 3b81b5c8cd..856b7a0039 100644 --- a/osu.Game/OsuGameBase.cs +++ b/osu.Game/OsuGameBase.cs -@@ -71,15 +71,12 @@ public partial class OsuGameBase : Framework.Game, ICanAcceptFiles +@@ -98,7 +98,7 @@ public partial class OsuGameBase : Framework.Game, ICanAcceptFiles, IBeatSyncPro /// public string VersionHash { get; private set; } - public bool IsDeployedBuild => AssemblyVersion.Major > 0; + public bool IsDeployedBuild => false; - public virtual string Version + internal const string BUILD_SUFFIX = "lazer"; + +@@ -106,9 +106,6 @@ public virtual string Version { get { @@ -27,8 +29,8 @@ index f2d575550a..e2f81d068c 100644 - return @"local " + (DebugUtils.IsDebugBuild ? @"debug" : @"release"); - var version = AssemblyVersion; - return $@"{version.Major}.{version.Minor}.{version.Build}-lazer"; + return $@"{version.Major}.{version.Minor}.{version.Build}-{BUILD_SUFFIX}"; } -- -2.31.1 +2.36.0 diff --git a/pkgs/osu-lazer/0002-Remove-random-song-button-from-footer.patch b/pkgs/osu-lazer/0002-Remove-random-song-button-from-footer.patch index 6de3908..24d8496 100644 --- a/pkgs/osu-lazer/0002-Remove-random-song-button-from-footer.patch +++ b/pkgs/osu-lazer/0002-Remove-random-song-button-from-footer.patch @@ -1,4 +1,4 @@ -From 9ebcc0ec1bd0bd6bb54f2516290a12bf8ed4def7 Mon Sep 17 00:00:00 2001 +From 9e2055a56686cfb0231915289bf977a590d5b10d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 9 Apr 2021 12:02:44 +0200 Subject: [PATCH 2/2] Remove random song button from footer @@ -9,10 +9,10 @@ I often click it accidentally. 1 file changed, 5 deletions(-) diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs -index 270addc8e6..78a03a37a2 100644 +index 7abcbfca42..7bbfac6a85 100644 --- a/osu.Game/Screens/Select/SongSelect.cs +++ b/osu.Game/Screens/Select/SongSelect.cs -@@ -305,11 +305,6 @@ private void load(AudioManager audio, DialogOverlay dialog, OsuColour colours, M +@@ -305,11 +305,6 @@ protected override void LoadComplete() protected virtual IEnumerable<(FooterButton, OverlayContainer)> CreateFooterButtons() => new (FooterButton, OverlayContainer)[] { (new FooterButtonMods { Current = Mods }, ModSelect), @@ -25,5 +25,5 @@ index 270addc8e6..78a03a37a2 100644 }; -- -2.31.1 +2.36.0