MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnFileSaveGoalText

Method OnFileSaveGoalText

editor/MainFrm.cpp:3639–3653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3637 cfclose(ofile);
3638}
3639
3640void CMainFrame::OnFileSaveGoalText() {
3641 CString path = theApp.main_doc->GetPathName();
3642
3643 char pathname[_MAX_FNAME], filename[_MAX_FNAME], ext[_MAX_FNAME];
3644 ddio_SplitPath(path.GetBuffer(0), pathname, filename, ext);
3645 strcat(pathname, filename);
3646 strcat(pathname, ".str");
3647 strcat(filename, ext);
3648
3649 CFileDialog dlg_open(FALSE, (LPCTSTR) ".str", pathname, 0, NULL, this);
3650 if (dlg_open.DoModal() == IDCANCEL)
3651 return;
3652
3653 DumpLevelGoals(dlg_open.GetPathName().GetBuffer(0), filename);
3654}
3655
3656void CMainFrame::OnViewViewprop() {

Callers

nothing calls this directly

Calls 4

DumpLevelGoalsFunction · 0.85
GetBufferMethod · 0.80
ddio_SplitPathFunction · 0.50
DoModalMethod · 0.45

Tested by

no test coverage detected