MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / BCurrentIsSystem

Method BCurrentIsSystem

src/vrcore/dirtools_public.cpp:410–417  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: returns whether current item under examination is marked as a system file -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

408// Purpose: returns whether current item under examination is marked as a system file
409//-----------------------------------------------------------------------------
410bool CDirIterator::BCurrentIsSystem() const
411{
412#if defined( _WIN32 )
413 return ( m_pFindData->dwFileAttributes & FILE_ATTRIBUTE_SYSTEM ) != 0;
414#else
415 return ( m_pFindData->attrib & _A_SYSTEM ? true : false );
416#endif
417}
418
419
420//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected