mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
SDL . . .
This commit is contained in:
parent
087da35f63
commit
7ea4ac03a1
@ -136,7 +136,7 @@ void Emulator::Run(const std::filesystem::path& file) {
|
||||
MemoryPatcher::g_game_serial = id;
|
||||
|
||||
// Timer for 'Play Time'
|
||||
timer = new QTimer();
|
||||
QTimer* timer = new QTimer();
|
||||
QObject::connect(timer, &QTimer::timeout, [this, id]() { UpdatePlayTime(id); });
|
||||
timer->start(60000); // 60000 ms = 1 minute
|
||||
#endif
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include <filesystem>
|
||||
#include <thread>
|
||||
#include <QTimer>
|
||||
|
||||
#include "common/singleton.h"
|
||||
#include "core/linker.h"
|
||||
@ -37,7 +36,6 @@ private:
|
||||
Core::Linker* linker;
|
||||
std::unique_ptr<Frontend::WindowSDL> window;
|
||||
std::chrono::steady_clock::time_point start_time;
|
||||
QTimer* timer;
|
||||
};
|
||||
|
||||
} // namespace Core
|
||||
|
Loading…
Reference in New Issue
Block a user