Add OpenBSD support
Adds OpenBSD support.
This commit is contained in:
		@@ -93,7 +93,7 @@ void UpdateController::installUpdates()
 | 
			
		||||
    qDebug() << "Installing updates.";
 | 
			
		||||
#ifdef Q_OS_WIN
 | 
			
		||||
    QString finishCmd = QApplication::applicationFilePath();
 | 
			
		||||
#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
 | 
			
		||||
#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined (Q_OS_OPENBSD)
 | 
			
		||||
    QString finishCmd = FS::PathCombine(m_root, BuildConfig.LAUNCHER_NAME);
 | 
			
		||||
#elif defined Q_OS_MAC
 | 
			
		||||
    QString finishCmd = QApplication::applicationFilePath();
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ QString MCEditTool::getProgramPath()
 | 
			
		||||
#else
 | 
			
		||||
    const QString mceditPath = path();
 | 
			
		||||
    QDir mceditDir(mceditPath);
 | 
			
		||||
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
 | 
			
		||||
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
 | 
			
		||||
    if (mceditDir.exists("mcedit.sh"))
 | 
			
		||||
    {
 | 
			
		||||
        return mceditDir.absoluteFilePath("mcedit.sh");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user