mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-23 16:45:37 +00:00
55d96f86f0
Partial backport of https://github.com/PCSX2/pcsx2/pull/11296
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
#pragma once
|
|
|
|
#include "common/progress_callback.h"
|
|
#include "common/types.h"
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
class SmallStringBase;
|
|
|
|
struct Settings;
|
|
|
|
namespace FullscreenUI {
|
|
bool Initialize();
|
|
bool IsInitialized();
|
|
bool HasActiveWindow();
|
|
void CheckForConfigChanges(const Settings& old_settings);
|
|
void OnSystemStarted();
|
|
void OnSystemPaused();
|
|
void OnSystemResumed();
|
|
void OnSystemDestroyed();
|
|
void OnRunningGameChanged();
|
|
|
|
#ifndef __ANDROID__
|
|
void OpenPauseMenu();
|
|
void OpenAchievementsWindow();
|
|
bool IsAchievementsWindowOpen();
|
|
void OpenLeaderboardsWindow();
|
|
bool IsLeaderboardsWindowOpen();
|
|
void ReturnToMainWindow();
|
|
void ReturnToPreviousWindow();
|
|
void SetStandardSelectionFooterText(bool back_instead_of_cancel);
|
|
#endif
|
|
|
|
void Shutdown();
|
|
void Render();
|
|
void InvalidateCoverCache();
|
|
void TimeToPrintableString(SmallStringBase* str, time_t t);
|
|
|
|
} // namespace FullscreenUI
|
|
|
|
// Host UI triggers from Big Picture mode.
|
|
namespace Host {
|
|
/// Requests shut down and exit of the hosting application. This may not actually exit,
|
|
/// if the user cancels the shutdown confirmation.
|
|
void RequestExitApplication(bool allow_confirm);
|
|
|
|
/// Requests Big Picture mode to be shut down, returning to the desktop interface.
|
|
void RequestExitBigPicture();
|
|
|
|
/// Requests the cover downloader be opened.
|
|
void OnCoverDownloaderOpenRequested();
|
|
} // namespace Host
|