mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
29 lines
506 B
C++
29 lines
506 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <discord_rpc.h>
|
|
|
|
namespace Discord {
|
|
|
|
enum class RPCStatus {
|
|
Idling,
|
|
Playing,
|
|
};
|
|
|
|
class RPC {
|
|
std::uint64_t startTimestamp;
|
|
bool enabled = false;
|
|
|
|
public:
|
|
void init();
|
|
void updatePlaying(const std::string& title, const std::string& game_id);
|
|
void updateIdle();
|
|
void stop();
|
|
};
|
|
|
|
} // namespace Discord
|