Add BoxArtManager for loading box art with caching

This commit is contained in:
Cameron Gutman
2018-06-27 22:02:29 -07:00
parent 135568b5ee
commit d7d11635a0
6 changed files with 168 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
#include "gui/mainwindow.h"
#include <QApplication>
#include "http/nvhttp.h"
// Don't let SDL hook our main function, since Qt is already
// doing the same thing
#define SDL_MAIN_HANDLED
@@ -8,10 +10,6 @@
int main(int argc, char *argv[])
{
// MacOS directive to prevent the menu bar from being merged into the native bar
// i.e. it's in the window, and not the top left of the screen
QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
// This avoids using the default keychain for SSL, which may cause
// password prompts on macOS.
qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", QByteArray("1"));
@@ -21,6 +19,9 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationDomain("moonlight-stream.com");
QCoreApplication::setApplicationName("Moonlight");
// Register custom metatypes for use in signals
qRegisterMetaType<NvApp>("NvApp");
QApplication a(argc, argv);
MainWindow w;
w.show();