yuzu: Pause when in background

Co-Authored-By: Vitor K <vitor-k@users.noreply.github.com>
This commit is contained in:
FearlessTobi
2019-09-26 14:54:31 +02:00
parent 376f1a4432
commit b89fb6e1be
6 changed files with 38 additions and 0 deletions

View File

@ -119,6 +119,7 @@ public slots:
void SoftwareKeyboardGetText(const Core::Frontend::SoftwareKeyboardParameters& parameters);
void SoftwareKeyboardInvokeCheckDialog(std::u16string error_message);
void WebBrowserOpenPage(std::string_view filename, std::string_view arguments);
void OnAppFocusStateChanged(Qt::ApplicationState state);
private:
void InitializeWidgets();
@ -244,6 +245,8 @@ private:
// The path to the game currently running
QString game_path;
bool auto_paused = false;
// FS
std::shared_ptr<FileSys::VfsFilesystem> vfs;
std::unique_ptr<FileSys::ManualContentProvider> provider;