Skip to content

Commit

Permalink
Merge pull request #29812 from smallketchup82/add-beatmap-icon
Browse files Browse the repository at this point in the history
Add beatmap icon to windows beatmap files
  • Loading branch information
peppy authored Sep 14, 2024
2 parents 5ea7061 + eb10247 commit 18ab4ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions osu.Desktop/Windows/Icons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ public static class Icons
private static readonly string icon_directory = Path.GetDirectoryName(typeof(Icons).Assembly.Location)!;

public static string Lazer => Path.Join(icon_directory, "lazer.ico");

public static string Beatmap => Path.Join(icon_directory, "beatmap.ico");
}
}
8 changes: 4 additions & 4 deletions osu.Desktop/Windows/WindowsAssociationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public static class WindowsAssociationManager

private static readonly FileAssociation[] file_associations =
{
new FileAssociation(@".osz", WindowsAssociationManagerStrings.OsuBeatmap, Icons.Lazer),
new FileAssociation(@".olz", WindowsAssociationManagerStrings.OsuBeatmap, Icons.Lazer),
new FileAssociation(@".osr", WindowsAssociationManagerStrings.OsuReplay, Icons.Lazer),
new FileAssociation(@".osk", WindowsAssociationManagerStrings.OsuSkin, Icons.Lazer),
new FileAssociation(@".osz", WindowsAssociationManagerStrings.OsuBeatmap, Icons.Beatmap),
new FileAssociation(@".olz", WindowsAssociationManagerStrings.OsuBeatmap, Icons.Beatmap),
new FileAssociation(@".osr", WindowsAssociationManagerStrings.OsuReplay, Icons.Beatmap),
new FileAssociation(@".osk", WindowsAssociationManagerStrings.OsuSkin, Icons.Beatmap),
};

private static readonly UriAssociation[] uri_associations =
Expand Down
Binary file added osu.Desktop/beatmap.ico
Binary file not shown.

0 comments on commit 18ab4ee

Please sign in to comment.