Added new command-line-parameter for playlist-folder: "PlaylistFolder".
This commit is contained in:
1 parent
5537d78f5d
commit
2115e75717
2 files changed
+12
-1
No files matched your search
@@ -933,6 +933,11 @@ namespace Vocaluxe.Base
|
||||
CSettings.sFileHighscoreDB = value;
|
||||
}
|
||||
break;
|
||||
|
||||
case "playlistfolder":
|
||||
CSettings.CreateFolder(value);
|
||||
CSettings.sFolderPlaylists = value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Vocaluxe.Base
|
||||
public const string sFolderLanguages = "Languages";
|
||||
public const string sFolderScreenshots = "Screenshots";
|
||||
public const string sFolderBackgroundMusic = "BackgroundMusic";
|
||||
public const string sFolderPlaylists = "Playlists";
|
||||
public static string sFolderPlaylists = "Playlists";
|
||||
|
||||
//public const String[] ToneStrings = new String[]{ "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" };
|
||||
public const int ToneMin = -36;
|
||||
@@ -194,5 +194,11 @@ namespace Vocaluxe.Base
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
}
|
||||
|
||||
public static void CreateFolder(string path)
|
||||
{
|
||||
if (!Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user