2022-03-16 16:53:43 -04:00
|
|
|
#include <QApplication>
|
2025-03-11 12:48:26 -04:00
|
|
|
#include "AppConfig.h"
|
|
|
|
#include "PathUtils.h"
|
2022-03-16 16:53:43 -04:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
#endif
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
|
|
|
MainWindow w;
|
|
|
|
w.show();
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
}
|
2025-03-11 12:48:26 -04:00
|
|
|
|
|
|
|
fs::path CAppConfig::GetBasePath() const
|
|
|
|
{
|
|
|
|
static const char* BASE_DATA_PATH = "ElfView Data Files";
|
|
|
|
static const auto basePath =
|
|
|
|
[]() {
|
|
|
|
auto result = Framework::PathUtils::GetPersonalDataPath() / BASE_DATA_PATH;
|
|
|
|
Framework::PathUtils::EnsurePathExists(result);
|
|
|
|
return result;
|
|
|
|
}();
|
|
|
|
return basePath;
|
|
|
|
}
|