Skip to content

Commit

Permalink
add separate folder for mp songs (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael R. <[email protected]>
  • Loading branch information
ehlor and michael-r-elp authored Aug 25, 2024
1 parent 8739fec commit 2a87538
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file added MultiplayerCore/Icons/MpFolder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions MultiplayerCore/MultiplayerCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="manifest.json" />
<EmbeddedResource Include="Icons\*.png" />
<EmbeddedResource Include="UI\ColorsUI.bsml" />
<EmbeddedResource Include="UI\LoadingIndicator.bsml" />
<EmbeddedResource Include="UI\LobbySetupPanel.bsml">
Expand Down
7 changes: 6 additions & 1 deletion MultiplayerCore/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public Plugin(IPALogger logger, PluginMetadata pluginMetadata, Zenjector zenject
[OnEnable]
public void OnEnable()
{
SongCore.Collections.AddSeparateSongFolder("Multiplayer", Path.Combine(Application.dataPath, CustomLevelsPath), SongCore.Data.FolderLevelPack.CustomLevels);
SongCore.Collections.AddSeperateSongFolder(
"Multiplayer",
Path.Combine(Application.dataPath, CustomLevelsPath),
SongCore.Data.FolderLevelPack.NewPack,
SongCore.Utilities.Utils.LoadSpriteFromResources("MultiplayerCore.Icons.MpFolder.png")
);
_harmony.PatchAll(_metadata.Assembly);
}

Expand Down

0 comments on commit 2a87538

Please sign in to comment.