SDL . . .

This commit is contained in:
DanielSvoboda 2024-10-09 02:47:23 -03:00
parent 087da35f63
commit 7ea4ac03a1
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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