| 273 | } |
| 274 | |
| 275 | void CFamiTrackerDoc::OnFileSaveAs() |
| 276 | { |
| 277 | #ifdef DISABLE_SAVE // // // |
| 278 | static_cast<CFrameWnd*>(AfxGetMainWnd())->SetMessageText(IDS_DISABLE_SAVE); |
| 279 | return; |
| 280 | #endif |
| 281 | |
| 282 | // Overloaded in order to save the ftm-path |
| 283 | CStringW newName = GetPathName(); |
| 284 | |
| 285 | if (!AfxGetApp()->DoPromptFileName(newName, AFX_IDS_SAVEFILE, OFN_HIDEREADONLY | OFN_PATHMUSTEXIST, FALSE, NULL)) |
| 286 | return; |
| 287 | |
| 288 | FTEnv.GetSettings()->SetPath(fs::path {(LPCWSTR)newName}.parent_path(), PATH_FTM); |
| 289 | |
| 290 | DoSave(newName); |
| 291 | } |
| 292 | |
| 293 | |
| 294 |
nothing calls this directly
no test coverage detected