Added new command-line-parameter for playlist-folder: "PlaylistFolder".

This commit is contained in:
Florian Kuepper committed 2012-11-01 14:54:17 +01:00
1 parent 5537d78f5d
commit 2115e75717
2 files changed
+12 -1

No files matched your search

+5
View File
@@ -933,6 +933,11 @@ namespace Vocaluxe.Base
CSettings.sFileHighscoreDB = value;
}
break;
case "playlistfolder":
CSettings.CreateFolder(value);
CSettings.sFolderPlaylists = value;
break;
}
}
}
+7 -1
View File
@@ -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);
}
}
}