fix default movie RTC value to be midnight instead of noon, as was intended, and fix win32 record dialog to set min/max correctly (how was this ever working for anyone?)
This commit is contained in:
parent
32253d8a01
commit
442fc0d938
|
@ -178,7 +178,7 @@ time_t FCEUI_MovieGetRTCDefault()
|
|||
t.tm_mon = 0; // 1 (Jan)
|
||||
t.tm_mday = 1;
|
||||
t.tm_wday = 4;
|
||||
t.tm_hour = 12;
|
||||
t.tm_hour = 0; //12 AM
|
||||
t.tm_min = 0;
|
||||
t.tm_sec = 0;
|
||||
t.tm_isdst= -1;
|
||||
|
@ -288,15 +288,16 @@ int MovieData::dump(EMUFILE* fp, bool binary)
|
|||
fp->fprintf("romChecksum %s\n", u32ToHexString(gameInfo.crc).c_str());
|
||||
fp->fprintf("romSerial %s\n", romSerial.c_str());
|
||||
fp->fprintf("guid %s\n", guid.toString().c_str());
|
||||
fp->fprintf("useExtBios %d\n", CommonSettings.UseExtBIOS);
|
||||
fp->fprintf("useExtBios %d\n", CommonSettings.UseExtBIOS?1:0);
|
||||
fp->fprintf("advancedTiming %d\n", CommonSettings.advanced_timing?1:0);
|
||||
|
||||
if(CommonSettings.UseExtBIOS)
|
||||
fp->fprintf("swiFromBios %d\n", CommonSettings.SWIFromBIOS);
|
||||
fp->fprintf("swiFromBios %d\n", CommonSettings.SWIFromBIOS?1:0);
|
||||
|
||||
fp->fprintf("useExtFirmware %d\n", CommonSettings.UseExtFirmware);
|
||||
fp->fprintf("useExtFirmware %d\n", CommonSettings.UseExtFirmware?1:0);
|
||||
|
||||
if(CommonSettings.UseExtFirmware) {
|
||||
fp->fprintf("bootFromFirmware %d\n", CommonSettings.BootFromFirmware);
|
||||
fp->fprintf("bootFromFirmware %d\n", CommonSettings.BootFromFirmware?1:0);
|
||||
}
|
||||
else {
|
||||
char temp_str[27];
|
||||
|
|
|
@ -271,8 +271,10 @@ static INT_PTR CALLBACK RecordDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
|
|||
DateTime_SetSystemtime(GetDlgItem(hwndDlg, IDC_DTP_DATE), GDT_VALID, &systime);
|
||||
DateTime_SetSystemtime(GetDlgItem(hwndDlg, IDC_DTP_TIME), GDT_VALID, &systime);
|
||||
|
||||
SYSTEMTIME rtcMin;
|
||||
SYSTEMTIME rtcMax;
|
||||
union {
|
||||
struct { SYSTEMTIME rtcMin, rtcMax; };
|
||||
SYSTEMTIME rtcMinMax[];
|
||||
};
|
||||
ZeroMemory(&rtcMin, sizeof(SYSTEMTIME));
|
||||
ZeroMemory(&rtcMax, sizeof(SYSTEMTIME));
|
||||
rtcMin.wYear = 2000;
|
||||
|
@ -283,8 +285,8 @@ static INT_PTR CALLBACK RecordDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
|
|||
rtcMax.wMonth = 12;
|
||||
rtcMax.wDay = 31;
|
||||
rtcMax.wDayOfWeek = 4;
|
||||
DateTime_SetRange(GetDlgItem(hwndDlg, IDC_DTP_DATE), GDTR_MIN, &rtcMin);
|
||||
DateTime_SetRange(GetDlgItem(hwndDlg, IDC_DTP_DATE), GDTR_MAX, &rtcMax);
|
||||
DateTime_SetRange(GetDlgItem(hwndDlg, IDC_DTP_DATE), GDTR_MIN, &rtcMinMax);
|
||||
DateTime_SetRange(GetDlgItem(hwndDlg, IDC_DTP_DATE), GDTR_MAX, &rtcMinMax);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue