Merge branch 'develop' of https://github.com/Vocaluxe/Vocaluxe into develop

This commit is contained in:
lukeIam committed 2015-03-04 10:37:18 +01:00
commit 3c6dcb8c96
6 files changed
+28 -4

No files matched your search

+2
View File
@@ -75,6 +75,8 @@ namespace Vocaluxe.Base
#if INSTALLER
public static readonly string DataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Vocaluxe");
#elif LINUX
public static readonly string DataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Vocaluxe");
#else
public static readonly string DataFolder = ProgramFolder;
#endif
+20
View File
@@ -96,6 +96,23 @@ namespace Vocaluxe
return _IsProgramInstalled("Microsoft Visual C++ 2010");
}
private static void _EnsureDataFolderExists()
{
if (!Directory.Exists(CSettings.DataFolder)) {
Directory.CreateDirectory(CSettings.DataFolder);
// copy default profiles to DataFolder instead of adding ProgramFolder to CConfig.ProfileFolders
// because we want to be able to edit them, but might not have permission to write to ProgramFolder
string profilePath = Path.Combine(CSettings.DataFolder, CSettings.FolderNameProfiles);
Directory.CreateDirectory(profilePath);
DirectoryInfo defaultProfileDir = new DirectoryInfo(Path.Combine(CSettings.ProgramFolder, CSettings.FolderNameProfiles));
FileInfo[] files = defaultProfileDir.GetFiles();
foreach (FileInfo file in files) {
string newPath = Path.Combine(profilePath, file.Name);
file.CopyTo(newPath, false);
}
}
}
public static bool CheckRequirements()
{
#if WIN
@@ -135,6 +152,9 @@ namespace Vocaluxe
#endif
path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + Path.DirectorySeparatorChar + path;
COSFunctions.AddEnvironmentPath(path);
#if LINUX
_EnsureDataFolderExists();
#endif
}
}
}
+1 -1
View File
@@ -47,7 +47,7 @@ namespace Vocaluxe.Lib.Input
#endif
#if LINUX
private const string _HIDApiDll = "libhidapi.so";
private const string _HIDApiDll = "libhidapi-libusb.so";
#endif
#endif
+1 -1
View File
@@ -176,7 +176,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
#endif
#if LINUX
private const string _AcDll = "x86/libacinerella.so";
private const string _AcDll = "libacinerella.so";
#endif
#endif
+2 -1
View File
@@ -85,11 +85,12 @@ namespace Vocaluxe
{
// Init Log
CLog.Init();
CLog.StartBenchmark("Init Program");
if (!CProgrammHelper.CheckRequirements())
return;
CProgrammHelper.Init();
CLog.StartBenchmark("Init Program");
CMain.Init();
Application.DoEvents();
+2 -1
View File
@@ -1,9 +1,10 @@
ARCH?=$(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x64/)
windowsLibs = Output/gstreamer-sharp.dll Output/glib-sharp.dll
all:
$(MAKE) -C PitchTracker
$(MAKE) -C Vocaluxe/Lib/Video/Acinerella
rm -f $(windowsLibs)
xbuild /property:Platform=x64 /property:Configuration=ReleaseLinux
xbuild /property:Platform=$(ARCH) /property:Configuration=ReleaseLinux
clean:
xbuild /target:Clean