mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
Add way to detect if Steam Deck in the UI
This commit is contained in:
parent
fcf2821406
commit
160b96229e
2 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,7 @@ class LauncherCore : public QObject
|
|||
Q_PROPERTY(bool loadingFinished READ isLoadingFinished NOTIFY loadingFinished)
|
||||
Q_PROPERTY(bool hasAccount READ hasAccount NOTIFY accountChanged)
|
||||
Q_PROPERTY(bool isSteam READ isSteam CONSTANT)
|
||||
Q_PROPERTY(bool isSteamDeck READ isSteamDeck CONSTANT)
|
||||
Q_PROPERTY(SquareBoot *squareBoot MEMBER squareBoot)
|
||||
Q_PROPERTY(ProfileManager *profileManager READ profileManager CONSTANT)
|
||||
Q_PROPERTY(AccountManager *accountManager READ accountManager CONSTANT)
|
||||
|
@ -129,6 +130,7 @@ public:
|
|||
bool isLoadingFinished() const;
|
||||
bool hasAccount() const;
|
||||
bool isSteam() const;
|
||||
bool isSteamDeck() const;
|
||||
|
||||
Q_INVOKABLE void refreshNews();
|
||||
Headline *headline();
|
||||
|
|
|
@ -589,3 +589,8 @@ void LauncherCore::openConfigBackup(Profile *profile)
|
|||
auto configProcess = new QProcess(this);
|
||||
launchExecutable(*profile, configProcess, {profile->gamePath() + "/boot/ffxivconfig64.exe"}, false, false);
|
||||
}
|
||||
|
||||
bool LauncherCore::isSteamDeck() const
|
||||
{
|
||||
return steamApi->isDeck();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue