duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

fullscreen_ui.h (1537B)


      1 // SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR PolyForm-Strict-1.0.0)
      3 
      4 #pragma once
      5 
      6 #include "common/progress_callback.h"
      7 #include "common/types.h"
      8 
      9 #include <functional>
     10 #include <memory>
     11 #include <string>
     12 #include <string_view>
     13 
     14 class SmallStringBase;
     15 
     16 struct Settings;
     17 
     18 namespace FullscreenUI {
     19 bool Initialize();
     20 bool IsInitialized();
     21 bool HasActiveWindow();
     22 void CheckForConfigChanges(const Settings& old_settings);
     23 void OnSystemStarted();
     24 void OnSystemPaused();
     25 void OnSystemResumed();
     26 void OnSystemDestroyed();
     27 void OnRunningGameChanged();
     28 
     29 #ifndef __ANDROID__
     30 void OpenPauseMenu();
     31 void OpenAchievementsWindow();
     32 bool IsAchievementsWindowOpen();
     33 void OpenLeaderboardsWindow();
     34 bool IsLeaderboardsWindowOpen();
     35 void ReturnToMainWindow();
     36 void ReturnToPreviousWindow();
     37 void SetStandardSelectionFooterText(bool back_instead_of_cancel);
     38 #endif
     39 
     40 void Shutdown();
     41 void Render();
     42 void InvalidateCoverCache();
     43 void TimeToPrintableString(SmallStringBase* str, time_t t);
     44 
     45 } // namespace FullscreenUI
     46 
     47 // Host UI triggers from Big Picture mode.
     48 namespace Host {
     49 /// Requests shut down and exit of the hosting application. This may not actually exit,
     50 /// if the user cancels the shutdown confirmation.
     51 void RequestExitApplication(bool allow_confirm);
     52 
     53 /// Requests Big Picture mode to be shut down, returning to the desktop interface.
     54 void RequestExitBigPicture();
     55 
     56 /// Requests the cover downloader be opened.
     57 void OnCoverDownloaderOpenRequested();
     58 } // namespace Host