Some minor fixes to path handling for installer
This commit is contained in:
1 parent
7ae2e33024
commit
34ddc1623a
2 files changed
+10
-9
No files matched your search
@@ -193,11 +193,11 @@ namespace Vocaluxe.Base
|
|||||||
//Folders
|
//Folders
|
||||||
public static readonly List<string> SongFolders = new List<string>
|
public static readonly List<string> SongFolders = new List<string>
|
||||||
{
|
{
|
||||||
#if WIN
|
#if INSTALLER
|
||||||
CSettings.FolderNameSongs
|
|
||||||
#elif INSTALLER
|
|
||||||
CSettings.FolderNameSongs,
|
CSettings.FolderNameSongs,
|
||||||
Path.Combine(CSettings.DataFolder, CSettings.FolderNameSongs)
|
Path.Combine(CSettings.DataFolder, CSettings.FolderNameSongs)
|
||||||
|
#elif WIN
|
||||||
|
CSettings.FolderNameSongs
|
||||||
#elif LINUX
|
#elif LINUX
|
||||||
Path.Combine(CSettings.DataFolder, CSettings.FolderNameSongs)
|
Path.Combine(CSettings.DataFolder, CSettings.FolderNameSongs)
|
||||||
#endif
|
#endif
|
||||||
@@ -208,11 +208,11 @@ namespace Vocaluxe.Base
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly List<string> ProfileFolders = new List<string>
|
public static readonly List<string> ProfileFolders = new List<string>
|
||||||
{
|
{
|
||||||
#if WIN
|
#if INSTALLER
|
||||||
CSettings.FolderNameProfiles
|
|
||||||
#elif INSTALLER
|
|
||||||
CSettings.FolderNameProfiles,
|
CSettings.FolderNameProfiles,
|
||||||
Path.Combine(CSettings.DataFolder, CSettings.FolderNameProfiles)
|
Path.Combine(CSettings.DataFolder, CSettings.FolderNameProfiles)
|
||||||
|
#elif WIN
|
||||||
|
CSettings.FolderNameProfiles
|
||||||
#elif LINUX
|
#elif LINUX
|
||||||
Path.Combine(CSettings.DataFolder, CSettings.FolderNameProfiles)
|
Path.Combine(CSettings.DataFolder, CSettings.FolderNameProfiles)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+4
-3
@@ -111,6 +111,10 @@ namespace Vocaluxe
|
|||||||
|
|
||||||
Application.DoEvents();
|
Application.DoEvents();
|
||||||
|
|
||||||
|
// Create folders
|
||||||
|
// Do this before starting benchmarks so data folder could be created properly
|
||||||
|
CSettings.CreateFolders();
|
||||||
|
|
||||||
// load config
|
// load config
|
||||||
CLog.StartBenchmark("Init Config");
|
CLog.StartBenchmark("Init Config");
|
||||||
CConfig.LoadCommandLineParams(args);
|
CConfig.LoadCommandLineParams(args);
|
||||||
@@ -119,9 +123,6 @@ namespace Vocaluxe
|
|||||||
CConfig.UseCommandLineParamsAfter();
|
CConfig.UseCommandLineParamsAfter();
|
||||||
CLog.StopBenchmark("Init Config");
|
CLog.StopBenchmark("Init Config");
|
||||||
|
|
||||||
// Create folders
|
|
||||||
CSettings.CreateFolders();
|
|
||||||
|
|
||||||
_SplashScreen = new CSplashScreen();
|
_SplashScreen = new CSplashScreen();
|
||||||
Application.DoEvents();
|
Application.DoEvents();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user