Implement config var
Implement SongWriter and Song.Save()
This commit is contained in:
1 parent
b0cb402dc3
commit
cc6d921f03
7 files changed
+103
-17
No files matched your search
@@ -37,6 +37,7 @@ namespace Vocaluxe.Base
|
||||
|
||||
// Debug
|
||||
public static EDebugLevel DebugLevel = EDebugLevel.TR_CONFIG_OFF;
|
||||
public static EOffOn SaveModifiedSongs = EOffOn.TR_CONFIG_OFF;
|
||||
|
||||
// Graphics
|
||||
#if WIN
|
||||
@@ -169,6 +170,7 @@ namespace Vocaluxe.Base
|
||||
return;
|
||||
|
||||
xmlReader.TryGetEnumValue("//root/Debug/DebugLevel", ref DebugLevel);
|
||||
xmlReader.TryGetEnumValue("//root/Debug/SaveModifiedSongs", ref SaveModifiedSongs);
|
||||
|
||||
#region Graphics
|
||||
xmlReader.TryGetEnumValue("//root/Graphics/Renderer", ref Renderer);
|
||||
@@ -328,6 +330,9 @@ namespace Vocaluxe.Base
|
||||
writer.WriteComment("DebugLevel: " + CHelper.ListStrings(Enum.GetNames(typeof(EDebugLevel))));
|
||||
writer.WriteElementString("DebugLevel", Enum.GetName(typeof(EDebugLevel), DebugLevel));
|
||||
|
||||
writer.WriteComment("SaveModifiedSongs: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||
writer.WriteElementString("SaveModifiedSongs", Enum.GetName(typeof(EOffOn), SaveModifiedSongs));
|
||||
|
||||
writer.WriteEndElement();
|
||||
#endregion Debug
|
||||
|
||||
|
||||
@@ -60,6 +60,11 @@ namespace Vocaluxe.Base
|
||||
|
||||
class CBconfig : IConfig
|
||||
{
|
||||
public EOffOn GetSaveModifiedSongs()
|
||||
{
|
||||
return CConfig.SaveModifiedSongs;
|
||||
}
|
||||
|
||||
public void SetBackgroundMusicVolume(int newVolume)
|
||||
{
|
||||
CConfig.BackgroundMusicVolume = newVolume;
|
||||
|
||||
Reference in new issue
Block a user