mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Set default music directory MBID Locator Mod
This commit is contained in:
@@ -31,7 +31,7 @@ namespace ZuneModCore.Mods
|
||||
Title = "Select music folder:",
|
||||
Items =
|
||||
{
|
||||
new AbstractTextBox("folderBox"),
|
||||
new AbstractTextBox("folderBox", Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)),
|
||||
new AbstractBooleanUIElement("recursiveBox", "Search recursively")
|
||||
}
|
||||
};
|
||||
@@ -46,10 +46,6 @@ namespace ZuneModCore.Mods
|
||||
bool recursive = ((AbstractBooleanUIElement)OptionsUI.Items[1]).State;
|
||||
string errorString = string.Empty;
|
||||
|
||||
// If the user didn't enter a folder, default to the "My Music" user folder
|
||||
if (string.IsNullOrEmpty(folderPath))
|
||||
folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
|
||||
|
||||
// Verify that the folder exists
|
||||
DirectoryInfo folder = new(folderPath);
|
||||
if (!folder.Exists)
|
||||
|
||||
Reference in New Issue
Block a user