MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Sys_GetPath

Function Sys_GetPath

neo/TypeInfo/main.cpp:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool Sys_GetPath(sysPath_t type, idStr &path) {
123 switch(type) {
124 case PATH_BASE:
125 path = Sys_Cwd();
126 return true;
127
128 case PATH_SAVE:
129 path = cvarSystem->GetCVarString("fs_basepath");
130 return true;
131
132 case PATH_EXE:
133 return false;
134 }
135
136 return false;
137}
138
139int Sys_ListFiles( const char *directory, const char *extension, idStrList &list ) {
140 idStr search;

Callers 3

LoadGameDLLbyNameMethod · 0.50
InitMethod · 0.50
FindDLLMethod · 0.50

Calls 2

GetCVarStringMethod · 0.80
Sys_CwdFunction · 0.70

Tested by

no test coverage detected