| 120 | } |
| 121 | |
| 122 | bool 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 | |
| 139 | int Sys_ListFiles( const char *directory, const char *extension, idStrList &list ) { |
| 140 | idStr search; |
no test coverage detected