MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / IsEntryFile

Method IsEntryFile

core/logic/LibrarySys.cpp:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool CDirectory::IsEntryFile()
136{
137#if defined PLATFORM_WINDOWS
138 return !(m_fd.dwFileAttributes & (FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_DEVICE));
139#elif defined PLATFORM_POSIX
140 char temppath[PLATFORM_MAX_PATH];
141 int ret = ke::SafeSprintf(temppath, sizeof(temppath), "%s/%s", m_origpath, GetEntryName());
142 if (static_cast<size_t>(ret) >= sizeof(temppath))
143 return false;
144 return ke::file::IsFile(temppath);
145#endif
146}
147
148const char *CDirectory::GetEntryName()
149{

Callers 5

sm_ReadDirEntryFunction · 0.80
LoadPluginsFromDirMethod · 0.80
ReparseMethod · 0.80
add_foldersFunction · 0.80
SDK_OnLoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected