diff options
author | Arisotura <thetotalworm@gmail.com> | 2023-11-03 21:20:09 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2023-11-03 21:20:09 +0100 |
commit | e4f4e94694f4e4aaac5b78704fee1c39f11dd034 (patch) | |
tree | 2b3e00077f4e0445a7e60fa1d6ef5fb3a7e33f30 /src/frontend/qt_sdl | |
parent | 440b3566745bbf967210bd6c51e791e1df472ff2 (diff) |
convert RTC to OOP
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/ROMManager.cpp | 4 | ||||
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
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); } |