Skip to content

Commit

Permalink
Fix for game v1.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Meivyn committed Oct 6, 2023
1 parent b3462c3 commit c4e11fa
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 98 deletions.
2 changes: 1 addition & 1 deletion PlaylistManager/Managers/PlaylistDataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal PlaylistDataManager(AnnotatedBeatmapLevelCollectionsViewController anno
this.levelCollectionsTableUpdaters = levelCollectionsTableUpdaters;
this.previewBeatmapLevelUpdaters = previewBeatmapLevelUpdaters;

emptyBeatmapLevelPack = new BeatmapLevelPack(CustomLevelLoader.kCustomLevelPackPrefixId + "CustomLevels", "Custom Levels", "Custom Levels", BeatSaberMarkupLanguage.Utilities.ImageResources.BlankSprite, BeatSaberMarkupLanguage.Utilities.ImageResources.BlankSprite, new BeatmapLevelCollection(new IPreviewBeatmapLevel[0]));
emptyBeatmapLevelPack = new BeatmapLevelPack(CustomLevelLoader.kCustomLevelPackPrefixId + "CustomLevels", "Custom Levels", "Custom Levels", BeatSaberMarkupLanguage.Utilities.ImageResources.BlankSprite, BeatSaberMarkupLanguage.Utilities.ImageResources.BlankSprite, new BeatmapLevelCollection(new IPreviewBeatmapLevel[0]), PlayerSensitivityFlag.Safe);
}

public void Initialize()
Expand Down
3 changes: 2 additions & 1 deletion PlaylistManager/Managers/PlaylistUIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using PlaylistManager.Utilities;
using PlaylistManager.HarmonyPatches;
using System.Linq;
using System.Threading;
using PlaylistManager.Downloaders;
using PlaylistManager.UI;

Expand Down Expand Up @@ -150,7 +151,7 @@ private async void AssignAuthor()
{
if (PluginConfig.Instance.AutomaticAuthorName)
{
var user = await platformUserModel.GetUserInfo();
var user = await platformUserModel.GetUserInfo(CancellationToken.None);
if (PluginConfig.Instance.AuthorName == null && user == null)
{
PluginConfig.Instance.AuthorName = nameof(PlaylistManager);
Expand Down
191 changes: 100 additions & 91 deletions PlaylistManager/PlaylistManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,99 +29,108 @@
</PropertyGroup>

<ItemGroup>
<Reference Include="BeatmapCore">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\BeatmapCore.dll</HintPath>
<Reference Include="0Harmony">
<HintPath>$(BeatSaberDir)\Libs\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Hive.Versioning">
<HintPath>$(BeatSaberDir)\Libs\Hive.Versioning.dll</HintPath>
</Reference>
<Reference Include="AdditionalContentModel.Interfaces">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\AdditionalContentModel.Interfaces.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="BeatmapCore">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\BeatmapCore.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BeatSaberPlaylistsLib">
<HintPath>$(BeatSaberDir)\Libs\BeatSaberPlaylistsLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Polyglot, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Polyglot.dll</HintPath>
</Reference>
<Reference Include="Tweening">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Tweening.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Unity.TextMeshPro.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.UI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.UIModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\System.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HMLib">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\HMLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HMUI">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\HMUI.dll</HintPath>
<Private>False</Private>
<Publicize>True</Publicize>
</Reference>
<Reference Include="Main">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Main.dll</HintPath>
<Private>False</Private>
<Publicize>True</Publicize>
</Reference>
<Reference Include="0Harmony">
<HintPath>$(BeatSaberDir)\Libs\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="IPA.Loader">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\IPA.Loader.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BeatSaberPlaylistsLib">
<HintPath>$(BeatSaberDir)\Libs\BeatSaberPlaylistsLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BeatSaverSharp">
<HintPath>$(BeatSaberDir)\Libs\BeatSaverSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BSML">
<HintPath>$(BeatSaberDir)\Plugins\BSML.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SongCore">
<HintPath>$(BeatSaberDir)\Plugins\SongCore.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SiraUtil">
<HintPath>$(BeatSaberDir)\Plugins\SiraUtil.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Zenject">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Zenject.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Zenject-usage">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Zenject-usage.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="mscorlib">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\mscorlib.dll</HintPath>
<Private>false</Private>
</Reference>
</Reference>
<Reference Include="BeatSaverSharp">
<HintPath>$(BeatSaberDir)\Libs\BeatSaverSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BGLib.DotnetExtension">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\BGLib.DotnetExtension.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="BSML">
<HintPath>$(BeatSaberDir)\Plugins\BSML.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Hive.Versioning">
<HintPath>$(BeatSaberDir)\Libs\Hive.Versioning.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HMLib">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\HMLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HMUI">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\HMUI.dll</HintPath>
<Private>False</Private>
<Publicize>True</Publicize>
</Reference>
<Reference Include="IPA.Loader">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\IPA.Loader.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Main">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Main.dll</HintPath>
<Private>False</Private>
<Publicize>True</Publicize>
</Reference>
<Reference Include="mscorlib">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\mscorlib.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="PlatformUserModel">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\PlatformUserModel.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="SiraUtil">
<HintPath>$(BeatSaberDir)\Plugins\SiraUtil.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="SongCore">
<HintPath>$(BeatSaberDir)\Plugins\SongCore.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\System.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Tweening">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Tweening.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Unity.TextMeshPro.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.UI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.UIModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Zenject">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Zenject.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Zenject-usage">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Zenject-usage.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions PlaylistManager/Utilities/PlaylistLibUtils.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Reflection;
Expand Down
6 changes: 3 additions & 3 deletions PlaylistManager/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"id": "PlaylistManager",
"name": "PlaylistManager",
"author": "PixelBoom",
"version": "1.6.8",
"version": "1.6.9",
"description": [
"#![PlaylistManager.Description.md]",
"Load, Create, Edit, Organize Playlists and Download their Songs in Beat Saber."
],
"gameVersion": "1.31.1",
"gameVersion": "1.32.0",
"icon": "PlaylistManager.Icons.Logo.png",
"dependsOn": {
"BSIPA": "^4.3.0",
"SongCore": "^3.9.5",
"BeatSaberMarkupLanguage": "^1.7.5",
"SiraUtil": "^3.0.0",
"BeatSaberPlaylistsLib": "^1.6.7",
"BeatSaberPlaylistsLib": "^1.6.8",
"BeatSaverSharp": "^3.4.5",
"System.IO.Compression": "^4.6.57",
"System.IO.Compression.FileSystem": "^4.7.3056"
Expand Down

0 comments on commit c4e11fa

Please sign in to comment.