Refactor code in comment to use CLog.Fatal()

This commit is contained in:
lukeIam committed 2018-01-24 18:09:44 +01:00
1 parent 5b3e13f373
commit 5e1dc0e421
1 file changed
+9 -11
+9 -11
View File
@@ -123,25 +123,23 @@ namespace Vocaluxe
"VC++ 2010 Redistributables are missing. Please install them first. \r\nDownload(x86): https://www.microsoft.com/de-de/download/details.aspx?id=5555 \r\nDownload(x64): https://www.microsoft.com/de-de/download/details.aspx?id=14632"); "VC++ 2010 Redistributables are missing. Please install them first. \r\nDownload(x86): https://www.microsoft.com/de-de/download/details.aspx?id=5555 \r\nDownload(x64): https://www.microsoft.com/de-de/download/details.aspx?id=14632");
return false; return false;
} }
/*if (!_IsVC2012Installed())
{
CLog.Error(
"VC++ 2012 Redistributables are missing. Please install them first.\r\nDownload: http://www.microsoft.com/de-de/download/details.aspx?id=30679",
true, true);
return false;
}*/
/* /*
if (!_IsVC2012Installed())
{
CLog.Fatal(
"VC++ 2012 Redistributables are missing. Please install them first.\r\nDownload: http://www.microsoft.com/de-de/download/details.aspx?id=30679");
return false;
}
bool vc2008Installed = _IsVC2008Installed(); bool vc2008Installed = _IsVC2008Installed();
if (!vc2008Installed) if (!vc2008Installed)
{ {
CLog.Error( CLog.Fatal(
"VC++ 2008 Redistributables are missing. Portaudio might not be working.\r\nDownload: http://www.microsoft.com/de-de/download/details.aspx?id=29"); "VC++ 2008 Redistributables are missing. Portaudio might not be working.\r\nDownload: http://www.microsoft.com/de-de/download/details.aspx?id=29");
} }
if (!vc2008Installed && !_IsVC2010Installed()) if (!vc2008Installed && !_IsVC2010Installed())
{ {
CLog.Error( CLog.Fatal(
"VC++ 2010 and 2008 Redistributables are missing. Please install them first. VC++ 2008 is preferred as Portaudio doesn't work with VC++ 2010.\r\nDownload(2008): http://www.microsoft.com/de-de/download/details.aspx?id=29 \r\nDownload(2010): http://www.microsoft.com/de-de/download/details.aspx?id=5555", "VC++ 2010 and 2008 Redistributables are missing. Please install them first. VC++ 2008 is preferred as Portaudio doesn't work with VC++ 2010.\r\nDownload(2008): http://www.microsoft.com/de-de/download/details.aspx?id=29 \r\nDownload(2010): http://www.microsoft.com/de-de/download/details.aspx?id=5555");
true, true);
return false; return false;
} }
*/ */