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

Method OnBrowse

editor/CustDefaultScriptSelect.cpp:68–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void CCustDefaultScriptSelect::OnBrowse() {
69
70 UpdateData(true);
71
72 CString filter = "D3 Compiled Scripts (*.dll)|*.dll||";
73
74 char filename[_MAX_PATH];
75 char pathname[_MAX_PATH], name[_MAX_PATH];
76 strcpy(pathname, LocalScriptDir);
77
78 if (!OpenFileDialog(this, (LPCTSTR)filter, filename, pathname, sizeof(pathname)))
79 return;
80
81 ddio_SplitPath(filename, NULL, name, NULL);
82
83 m_Module = name;
84
85 UpdateData(false);
86}

Callers

nothing calls this directly

Calls 2

OpenFileDialogFunction · 0.85
ddio_SplitPathFunction · 0.50

Tested by

no test coverage detected