mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:02:54 +08:00
Only associate on a deployed build
Helps to reduce clutter when developing
This commit is contained in:
parent
03578821c0
commit
2bac09ee00
@ -134,10 +134,11 @@ namespace osu.Desktop
|
||||
|
||||
LoadComponentAsync(new DiscordRichPresence(), Add);
|
||||
|
||||
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows && OperatingSystem.IsWindows())
|
||||
{
|
||||
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows)
|
||||
LoadComponentAsync(new GameplayWinKeyBlocker(), Add);
|
||||
|
||||
if (OperatingSystem.IsWindows() && IsDeployedBuild)
|
||||
{
|
||||
string? executableLocation = Path.GetDirectoryName(typeof(OsuGameDesktop).Assembly.Location);
|
||||
LoadComponentAsync(new WindowsAssociationManager(Path.Join(executableLocation, @"osu!.exe"), "osu"), Add);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user