MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / GetConfigName

Function GetConfigName

Libraries/unrar/pathfn.cpp:302–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301#ifndef SFX_MODULE
302void GetConfigName(const wchar *Name,wchar *FullName,size_t MaxSize,bool CheckExist,bool Create)
303{
304 *FullName=0;
305 for (uint I=0;EnumConfigPaths(I,FullName,MaxSize,Create);I++)
306 {
307 AddEndSlash(FullName,MaxSize);
308 wcsncatz(FullName,Name,MaxSize);
309 if (!CheckExist || WildFileExist(FullName))
310 break;
311 }
312}
313#endif
314
315

Callers 1

ReadTextFileFunction · 0.85

Calls 4

EnumConfigPathsFunction · 0.85
AddEndSlashFunction · 0.85
wcsncatzFunction · 0.85
WildFileExistFunction · 0.85

Tested by

no test coverage detected