1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 04:37:46 +00:00
astra/launcher/include/steamapi.h
Joshua Goins 2662b0e0bb Refactor parts of the Steam API support
To make the code a bit cleaner, ensure the steam api class is only
initialized if Steam support is needed. Also shuts down the steam api
too.
2023-10-08 17:55:13 -04:00

22 lines
No EOL
416 B
C++

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QObject>
class LauncherCore;
class SteamAPI : public QObject
{
public:
explicit SteamAPI(LauncherCore &core, QObject *parent = nullptr);
~SteamAPI();
void setLauncherMode(bool isLauncher);
[[nodiscard]] bool isDeck() const;
private:
LauncherCore &core;
};