mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-24 23:08:51 -04:00
Add OBSErrorBox for early initialization failures
This commit is contained in:
1 parent
37601eb0c0
commit
10a6ffdbf8
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user