fix: Discord Presence Timer

This commit is contained in:
collecting
2025-10-02 23:59:25 +00:00
parent c456f521e9
commit 2d20ffeb06

View File

@@ -4,8 +4,8 @@
#pragma once
#include <atomic>
#include <cstdint>
#include <thread>
#include "citron/discord.h"
@@ -23,7 +23,6 @@ namespace DiscordRPC {
void Pause() override;
void Update() override;
// FIX: Add the function and members for the background thread
void ThreadRun();
std::thread discord_thread;
std::atomic<bool> discord_thread_running;
@@ -38,6 +37,10 @@ namespace DiscordRPC {
Core::System& system;
u64 program_id = 0;
s64 current_state_start_time = 0;
bool was_powered_on = false;
};
} // namespace DiscordRPC