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

Method SetInitialPath

editor/FilePageAddDlg.cpp:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void CFilePageAddDlg::SetInitialPath(char *path) {
63 char olddir[_MAX_PATH];
64 ddio_GetWorkingDir(olddir, _MAX_PATH);
65 if (ddio_SetWorkingDir(path)) {
66 if (path[1] == ':')
67 initial_path = path;
68 }
69 ddio_SetWorkingDir(olddir);
70}
71
72void CFilePageAddDlg::DoDataExchange(CDataExchange *pDX) {
73 CDialog::DoDataExchange(pDX);

Callers 1

OnAddFileMethod · 0.80

Calls 2

ddio_GetWorkingDirFunction · 0.50
ddio_SetWorkingDirFunction · 0.50

Tested by

no test coverage detected