From 13f6e869c1dd8474d3f0df76189cd1453573dd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Wed, 3 Dec 2014 11:06:11 +0100 Subject: [PATCH] Fixed starting server and creating profiles. --- Vocaluxe/Base/Server/CVocaluxeServer.cs | 2 ++ VocaluxeLib/Profile/CProfile.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Base/Server/CVocaluxeServer.cs b/Vocaluxe/Base/Server/CVocaluxeServer.cs index 0af844d2..d989aa51 100644 --- a/Vocaluxe/Base/Server/CVocaluxeServer.cs +++ b/Vocaluxe/Base/Server/CVocaluxeServer.cs @@ -88,6 +88,8 @@ namespace Vocaluxe.Base.Server CServer.RemovePlaylist = _RemovePlaylist; CServer.AddPlaylist = _AddPlaylist; + Start(); + //_Discover = new CDiscover(CConfig.ServerPort, CCommands.BroadcastKeyword); } diff --git a/VocaluxeLib/Profile/CProfile.cs b/VocaluxeLib/Profile/CProfile.cs index 45afbb81..a0ee3ee4 100644 --- a/VocaluxeLib/Profile/CProfile.cs +++ b/VocaluxeLib/Profile/CProfile.cs @@ -139,7 +139,8 @@ namespace VocaluxeLib.Profile if (filename == "") filename = "1"; - FilePath = Path.Combine(CBase.Settings.GetDataPath(), CBase.Settings.GetFolderProfiles(), CHelper.GetUniqueFileName(FilePath, filename + ".xml", false)); + FilePath = Path.Combine(CBase.Settings.GetDataPath(), CBase.Settings.GetFolderProfiles()); + FilePath = Path.Combine(FilePath, CHelper.GetUniqueFileName(FilePath, filename + ".xml", false)); } var xml = new CXmlSerializer();