all repos — mgba @ 8b88e7ae6a4434b37a4812accea648cdbb62331d

mGBA Game Boy Advance Emulator

Qt: More app metadata fixes
Vicki Pfau vi@endrift.com
Mon, 25 Feb 2019 20:54:47 -0800
commit

8b88e7ae6a4434b37a4812accea648cdbb62331d

parent

6f7573dda4eea59cd2ea8291890476861281ddaa

4 files changed, 8 insertions(+), 9 deletions(-)

jump to
M CHANGESCHANGES

@@ -7,6 +7,7 @@ Bugfixes:

- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208) - GBA: Reset now reloads multiboot ROMs - GBA BIOS: Fix multiboot entry point (fixes Magic Floor) + - Qt: More app metadata fixes Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M src/platform/qt/GBAApp.cppsrc/platform/qt/GBAApp.cpp

@@ -18,7 +18,6 @@ #include <QFileInfo>

#include <QFileOpenEvent> #include <QIcon> -#include <mgba/core/version.h> #include <mgba-util/socket.h> #include <mgba-util/vfs.h>

@@ -42,16 +41,9 @@ #ifdef BUILD_SDL

SDL_Init(SDL_INIT_NOPARACHUTE); #endif -#ifndef Q_OS_MAC - setWindowIcon(QIcon(":/res/mgba-512.png")); -#endif - SocketSubsystemInit(); qRegisterMetaType<const uint32_t*>("const uint32_t*"); qRegisterMetaType<mCoreThread*>("mCoreThread*"); - - QApplication::setApplicationName(projectName); - QApplication::setApplicationVersion(projectVersion); if (!m_configController->getQtOption("displayDriver").isNull()) { Display::setDriver(static_cast<Display::Driver>(m_configController->getQtOption("displayDriver").toInt()));
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -85,7 +85,6 @@ updateTitle();

m_logo.setDevicePixelRatio(m_screenWidget->devicePixelRatio()); m_logo = m_logo; // Free memory left over in old pixmap - setWindowIcon(m_logo); #if defined(M_CORE_GBA) float i = 2;
M src/platform/qt/main.cppsrc/platform/qt/main.cpp

@@ -61,7 +61,14 @@ usage(argv[0], subparser.usage);

return 0; } + QApplication::setApplicationName(projectName); + QApplication::setApplicationVersion(projectVersion); + GBAApp application(argc, argv, &configController); + +#ifndef Q_OS_MAC + QApplication::setWindowIcon(QIcon(":/res/mgba-1024.png")); +#endif QTranslator qtTranslator; qtTranslator.load(locale, "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));