MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / FileExists

Method FileExists

framework/d3d11/amd_sdk/src/HelperFunctions.cpp:550–564  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Helper function to check for file existance --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

548// Helper function to check for file existance
549//--------------------------------------------------------------------------------------
550bool AMD::FileExists( WCHAR* pFileName )
551{
552 assert( NULL != pFileName );
553
554 FILE* pFile = NULL;
555 _wfopen_s( &pFile, pFileName, L"rb" );
556 if (pFile)
557 {
558 fclose( pFile );
559
560 return true;
561 }
562
563 return false;
564}
565
566
567//--------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected