ソースを参照

Add OBSErrorBox for early initialization failures

Palana 11 年 前
コミット
10a6ffdbf8
1 ファイル変更2 行追加1 行削除
  1. 2 1
      obs/obs-app.cpp

+ 2 - 1
obs/obs-app.cpp

@@ -465,8 +465,8 @@ static int run_program(fstream &logFile, int argc, char *argv[])
 	int ret = -1;
 	QCoreApplication::addLibraryPath(".");
 
+	OBSApp program(argc, argv);
 	try {
-		OBSApp program(argc, argv);
 		program.AppInit();
 
 		OBSTranslator translator;
@@ -481,6 +481,7 @@ static int run_program(fstream &logFile, int argc, char *argv[])
 
 	} catch (const char *error) {
 		blog(LOG_ERROR, "%s", error);
+		OBSErrorBox(nullptr, "%s", error);
 	}
 
 	return ret;