mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
Fix Timer
This commit is contained in:
parent
7ea4ac03a1
commit
fd9c27bcfc
@ -137,7 +137,10 @@ void Emulator::Run(const std::filesystem::path& file) {
|
|||||||
|
|
||||||
// Timer for 'Play Time'
|
// Timer for 'Play Time'
|
||||||
QTimer* timer = new QTimer();
|
QTimer* timer = new QTimer();
|
||||||
QObject::connect(timer, &QTimer::timeout, [this, id]() { UpdatePlayTime(id); });
|
QObject::connect(timer, &QTimer::timeout, [this, id]() {
|
||||||
|
UpdatePlayTime(id);
|
||||||
|
start_time = std::chrono::steady_clock::now();
|
||||||
|
});
|
||||||
timer->start(60000); // 60000 ms = 1 minute
|
timer->start(60000); // 60000 ms = 1 minute
|
||||||
#endif
|
#endif
|
||||||
title = param_sfo->GetString("TITLE").value_or("Unknown title");
|
title = param_sfo->GetString("TITLE").value_or("Unknown title");
|
||||||
|
Loading…
Reference in New Issue
Block a user