mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Fix date and time handling for custom RTC in WX.
The actual problem was combining the values from the date and time pickers incorrectly. The uninteresting parts of the returned wxDateTime need to be ignored and the WX documentation says so for the time picker. I also cleaned up the handling of both widgets a bit, removing redundant member variables in the process, in order to not risk correctness.
This commit is contained in:
parent
29cc009706
commit
ee9fb47c53
2 changed files with 45 additions and 28 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
class DolphinSlider;
|
||||
class wxCheckBox;
|
||||
class wxDateEvent;
|
||||
class wxDateTime;
|
||||
class wxDatePickerCtrl;
|
||||
class wxStaticText;
|
||||
class wxTimePickerCtrl;
|
||||
|
@ -31,16 +33,14 @@ private:
|
|||
void OnClockOverrideCheckBoxChanged(wxCommandEvent&);
|
||||
void OnClockOverrideSliderChanged(wxCommandEvent&);
|
||||
void OnCustomRTCCheckBoxChanged(wxCommandEvent&);
|
||||
void OnCustomRTCDateChanged(wxCommandEvent&);
|
||||
void OnCustomRTCTimeChanged(wxCommandEvent&);
|
||||
void OnCustomRTCDateChanged(wxDateEvent&);
|
||||
void OnCustomRTCTimeChanged(wxDateEvent&);
|
||||
|
||||
void UpdateCPUClock();
|
||||
|
||||
// Custom RTC
|
||||
void LoadCustomRTC();
|
||||
void UpdateCustomRTC(time_t date, time_t time);
|
||||
u32 m_temp_date;
|
||||
u32 m_temp_time;
|
||||
void UpdateCustomRTC(const wxDateTime&);
|
||||
|
||||
wxCheckBox* m_clock_override_checkbox;
|
||||
DolphinSlider* m_clock_override_slider;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue