mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-21 21:03:44 +12:00
Create Playlists folder if it doesn't exist
This commit is contained in:
parent
c170d91d26
commit
58de249f1d
|
@ -69,6 +69,8 @@ namespace ModAssistant
|
|||
}
|
||||
}
|
||||
|
||||
API.Playlists.CreatePlaylistsFolder();
|
||||
|
||||
options.InstallType =
|
||||
BeatSaberInstallType = ModAssistant.Properties.Settings.Default.StoreType;
|
||||
options.SaveSelection =
|
||||
|
|
|
@ -12,12 +12,15 @@ namespace ModAssistant.API
|
|||
private const string BSaberURLPrefix = "https://bsaber.com/PlaylistAPI/";
|
||||
private const string PlaylistsFolder = "Playlists";
|
||||
private static readonly string BeatSaberPath = Utils.BeatSaberPath;
|
||||
|
||||
string root = App.BeatSaberInstallDirectory;
|
||||
string subdir = PlaylistsFolder;
|
||||
if (!Directory.Exists(subdir))
|
||||
|
||||
public static bool CreatePlaylistsFolder()
|
||||
{
|
||||
Directory.CreateDirectory(subdir);
|
||||
string playlistsPath = Path.Combine(BeatSaberPath, PlaylistsFolder);
|
||||
if (!Directory.Exists(playlistsPath))
|
||||
{
|
||||
Directory.CreateDirectory(playlistsPath);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static async Task DownloadAll(Uri uri)
|
||||
|
|
Loading…
Reference in a new issue