DolphinQt: Stub Host_* functions & Resource system.

This commit is contained in:
Augustin Cavalier
2014-10-18 11:07:17 -04:00
parent 742f9c6b14
commit 8d4068527b
13 changed files with 560 additions and 164 deletions

View File

@ -11,6 +11,9 @@
#include "MainWindow.h"
#include "DolphinQt/Utils/Utils.h"
#include "UICommon/UICommon.h"
static bool IsOsSupported()
{
#ifdef Q_OS_OSX
@ -25,11 +28,11 @@ static bool IsOsSupported()
static QString LowestSupportedOsVersion()
{
#ifdef Q_OS_OSX
return QStringLiteral("Mac OS X 10.7");
return SL("Mac OS X 10.7");
#elif defined(Q_OS_WIN)
return QStringLiteral("Windows Vista SP2");
return SL("Windows Vista SP2");
#else
return QStringLiteral("Unknown");
return SL("Unknown");
#endif
}
@ -38,6 +41,9 @@ int main(int argc, char* argv[])
QApplication app(argc, argv);
// TODO: Add command line options
UICommon::CreateDirectories();
UICommon::Init();
if (!IsOsSupported())
{
QMessageBox::critical(nullptr, QObject::tr("Unsupported OS"),
@ -50,5 +56,7 @@ int main(int argc, char* argv[])
DMainWindow w;
w.show();
return app.exec();
int retcode = app.exec();
UICommon::Shutdown();
return retcode;
}