MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnFileSaveAs

Method OnFileSaveAs

Source/FamiTrackerDoc.cpp:275–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void 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

Callers

nothing calls this directly

Calls 3

DoPromptFileNameMethod · 0.80
SetPathMethod · 0.80
GetSettingsMethod · 0.45

Tested by

no test coverage detected