cleaned up crashpad code

This commit is contained in:
itsmattkc
2021-04-01 16:15:50 +11:00
parent 0ee98a47ea
commit 636daddc61
5 changed files with 37 additions and 29 deletions
+1 -6
View File
@@ -71,12 +71,7 @@ bool LinuxExceptionHandler(int, siginfo_t*, ucontext_t*)
bool InitializeCrashpad()
{
QString handler_fn = QStringLiteral("crashpad_handler");;
// Determine filename of handler from platform
#ifdef OS_WIN
handler_fn.append(QStringLiteral(".exe"));
#endif
QString handler_fn = olive::FileFunctions::GetFormattedExecutableForPlatform(QStringLiteral("crashpad_handler"));
// Generate absolute path
QString handler_abs_path = QDir(QCoreApplication::applicationDirPath()).filePath(handler_fn);