SpiecsEngine
 
Loading...
Searching...
No Matches

◆ FileLibrary_Close()

void Spices::FileLibrary::FileLibrary_Close ( FileHandle * handle)
static

Close the file by the file handle.

Parameters
[in]handleThe file handle.

Definition at line 66 of file FileLibrary.cpp.

67 {
69
70 if (handle->handle)
71 {
72 auto state = fclose(static_cast<FILE*>(handle->handle));
73 handle->handle = nullptr;
74 handle->is_valid = false;
75 }
76 }
#define SPICES_PROFILE_ZONE

References Spices::FileHandle::handle, and Spices::FileHandle::is_valid.

Referenced by Spices::MeshLoader::LoadFromSASSET(), Spices::MaterialLoader::LoadFromSASSET(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), and Spices::MeshLoader::WriteSASSET().