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

Function GetRecordPath

src/drivers/win/replay.cpp:73–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static 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
100static char* GetSavePath(HWND hwndDlg)
101{

Callers 2

UpdateRecordDialogFunction · 0.85
RecordDialogProcFunction · 0.85

Calls 2

GetDlgItemTextFunction · 0.85
FCEU_MakePathFunction · 0.85

Tested by

no test coverage detected