From e4f4e94694f4e4aaac5b78704fee1c39f11dd034 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Fri, 3 Nov 2023 21:20:09 +0100 Subject: convert RTC to OOP --- src/frontend/qt_sdl/ROMManager.cpp | 4 ++-- src/frontend/qt_sdl/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/frontend/qt_sdl') diff --git a/src/frontend/qt_sdl/ROMManager.cpp b/src/frontend/qt_sdl/ROMManager.cpp index 9b4b49c..19ae954 100644 --- a/src/frontend/qt_sdl/ROMManager.cpp +++ b/src/frontend/qt_sdl/ROMManager.cpp @@ -597,8 +597,8 @@ void SetDateTime() QDateTime hosttime = QDateTime::currentDateTime(); QDateTime time = hosttime.addSecs(Config::RTCOffset); - RTC::SetDateTime(time.date().year(), time.date().month(), time.date().day(), - time.time().hour(), time.time().minute(), time.time().second()); + NDS::RTC->SetDateTime(time.date().year(), time.date().month(), time.date().day(), + time.time().hour(), time.time().minute(), time.time().second()); } void Reset() diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index f670477..0945de2 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -361,7 +361,7 @@ void EmuThread::run() RTC::StateData state; Platform::FileRead(&state, sizeof(state), 1, file); Platform::CloseFile(file); - RTC::SetState(state); + NDS::RTC->SetState(state); } char melontitle[100]; @@ -666,7 +666,7 @@ void EmuThread::run() if (file) { RTC::StateData state; - RTC::GetState(state); + NDS::RTC->GetState(state); Platform::FileWrite(&state, sizeof(state), 1, file); Platform::CloseFile(file); } -- cgit v1.2.3