MCPcopy Create free account
hub / github.com/Illation/ETEngine / Cleanup

Method Cleanup

Engine/source/EtCooker/PackageWriter.cpp:95–110  ·  view source on GitHub ↗

--------------------------------- PackageWriter::Cleanup Close all files

Source from the content-addressed store, hash-verified

93// Close all files
94//
95void PackageWriter::Cleanup()
96{
97 for (FileEntryInfo& entryFile : m_Files)
98 {
99 if (entryFile.file->IsOpen())
100 {
101 entryFile.file->Close();
102
103 // delete the file
104 delete entryFile.file;
105 entryFile.file = nullptr;
106 }
107 }
108
109 m_Files.clear();
110}
111
112//---------------------------------
113// PackageWriter::Write

Callers

nothing calls this directly

Calls 2

IsOpenMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected