| 71 | } |
| 72 | |
| 73 | static std::string GetRecordPath(HWND hwndDlg) |
| 74 | { |
| 75 | std::string fn; |
| 76 | char szChoice[MAX_PATH]; |
| 77 | char szDrive[MAX_PATH]={0}; |
| 78 | char szDirectory[MAX_PATH]={0}; |
| 79 | char szFilename[MAX_PATH]={0}; |
| 80 | char szExt[MAX_PATH]={0}; |
| 81 | |
| 82 | GetDlgItemText(hwndDlg, IDC_EDIT_FILENAME, szChoice, sizeof(szChoice)); |
| 83 | |
| 84 | _splitpath(szChoice, szDrive, szDirectory, szFilename, szExt); |
| 85 | |
| 86 | //make sure that there is an extension of fm2 |
| 87 | if(stricmp(szExt,".fm2")) { |
| 88 | strcpy(szExt,".fm2"); |
| 89 | _makepath(szChoice,szDrive,szDirectory,szFilename,szExt); |
| 90 | } |
| 91 | |
| 92 | if(szDrive[0]=='\0' && szDirectory[0]=='\0') |
| 93 | fn=FCEU_MakePath(FCEUMKF_MOVIE, szChoice); // need to make a full path |
| 94 | else |
| 95 | fn= szChoice; // given a full path |
| 96 | |
| 97 | return fn; |
| 98 | } |
| 99 | |
| 100 | static char* GetSavePath(HWND hwndDlg) |
| 101 | { |
no test coverage detected