MCPcopy Create free account
hub / github.com/TASEmulators/fceux / UpdateRecordDialog

Function UpdateRecordDialog

src/drivers/win/replay.cpp:793–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791};
792
793static void UpdateRecordDialog(HWND hwndDlg)
794{
795 int enable=0;
796
797 std::string fn=GetRecordPath(hwndDlg);
798
799 if(fn!="")
800 {
801 if(access(fn.c_str(), F_OK) ||
802 !access(fn.c_str(), W_OK))
803 {
804 LONG lCount = SendDlgItemMessage(hwndDlg, IDC_COMBO_RECORDFROM, CB_GETCOUNT, 0, 0);
805 LONG lIndex = SendDlgItemMessage(hwndDlg, IDC_COMBO_RECORDFROM, CB_GETCURSEL, 0, 0);
806 if(lIndex != lCount-1)
807 {
808 enable=1;
809 }
810 }
811
812 }
813
814 EnableWindow(GetDlgItem(hwndDlg,IDOK),enable ? TRUE : FALSE);
815}
816
817static void UpdateRecordDialogPath(HWND hwndDlg, const std::string &fname)
818{

Callers 1

RecordDialogProcFunction · 0.85

Calls 1

GetRecordPathFunction · 0.85

Tested by

no test coverage detected