mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt2: Experimental GUI Warning Prompt.
Add a GUI prompt to tell users not to use DolphinQt by accident.
This commit is contained in:
@ -8,8 +8,10 @@
|
||||
#include "Core/BootManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "DolphinQt2/Host.h"
|
||||
#include "DolphinQt2/InDevelopmentWarning.h"
|
||||
#include "DolphinQt2/MainWindow.h"
|
||||
#include "DolphinQt2/Resources.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
@ -26,9 +28,18 @@ int main(int argc, char* argv[])
|
||||
QObject::connect(QAbstractEventDispatcher::instance(), &QAbstractEventDispatcher::aboutToBlock,
|
||||
&app, &Core::HostDispatchJobs);
|
||||
|
||||
MainWindow win;
|
||||
win.show();
|
||||
int retval = app.exec();
|
||||
int retval = 0;
|
||||
if (Settings().IsInDevelopmentWarningEnabled())
|
||||
{
|
||||
InDevelopmentWarning warning_box;
|
||||
retval = warning_box.exec() == QDialog::Rejected;
|
||||
}
|
||||
if (!retval)
|
||||
{
|
||||
MainWindow win;
|
||||
win.show();
|
||||
retval = app.exec();
|
||||
}
|
||||
|
||||
BootManager::Stop();
|
||||
Core::Shutdown();
|
||||
|
Reference in New Issue
Block a user