added basic last run crash dialog

This commit is contained in:
fourtf
2018-04-20 00:15:57 +02:00
parent 683c4aed2d
commit e17a7cc222
10 changed files with 73 additions and 10 deletions
+9
View File
@@ -1,6 +1,7 @@
#include "singletons/pathmanager.hpp"
#include <QCoreApplication>
#include <QCryptographicHash>
#include <QDir>
#include <QStandardPaths>
@@ -15,6 +16,14 @@ PathManager &PathManager::getInstance()
bool PathManager::init(int argc, char **argv)
{
// hash of app path
this->appPathHash = QCryptographicHash::hash(QCoreApplication::applicationFilePath().toUtf8(),
QCryptographicHash::Sha224)
.toBase64()
.mid(0, 32)
.replace("+", "-")
.replace("/", "x");
// Options
bool portable = false;