Add warning popup when loading save states for the first time (#6565)

* citra_qt: Remove global state usage in GMainWindow

* citra_qt: Add warning when loadings saves for the first time

* citra_qt: Focus window when launching game from cmdline

* citra_qt: Cleanup nullptr checks

* citra_qt: Move setting to UISettings

* renderer_opengl: Remove header
This commit is contained in:
GPUCode 2023-06-05 10:06:00 +03:00 committed by GitHub
parent 52f88f8fb4
commit 5b7cc76ba3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 85 additions and 80 deletions

View file

@ -11,7 +11,6 @@
#include <QTranslator>
#include "citra_qt/compatibility_list.h"
#include "citra_qt/hotkeys.h"
#include "common/announce_multiplayer_room.h"
#include "core/core.h"
#include "core/savestate.h"
@ -57,6 +56,10 @@ namespace DiscordRPC {
class DiscordInterface;
}
namespace Core {
class Movie;
}
namespace Ui {
class MainWindow;
}
@ -83,7 +86,7 @@ public:
void filterBarSetChecked(bool state);
void UpdateUITheme();
GMainWindow();
explicit GMainWindow(Core::System& system);
~GMainWindow();
GameList* game_list;
@ -260,6 +263,8 @@ private:
void OpenPerGameConfiguration(u64 title_id, const QString& file_name);
std::unique_ptr<Ui::MainWindow> ui;
Core::System& system;
Core::Movie& movie;
GRenderWindow* render_window;
GRenderWindow* secondary_window;