MCPcopy Create free account
hub / github.com/axmolengine/axmol / ZipFile_error_file_func

Method ZipFile_error_file_func

core/base/ZipUtils.cpp:637–652  ·  view source on GitHub ↗

THis isn't supported by IFileStream, so just check if the stream is null and open

Source from the content-addressed store, hash-verified

635
636 // THis isn't supported by IFileStream, so just check if the stream is null and open
637 static int ZipFile_error_file_func(voidpf opaque, voidpf stream)
638 {
639 if (stream == nullptr)
640 {
641 return -1;
642 }
643
644 auto* fs = (IFileStream*)stream;
645
646 if (fs->isOpen())
647 {
648 return 0;
649 }
650
651 return -1;
652 }
653 // End of Overrides
654
655 std::string zipFileName;

Callers

nothing calls this directly

Calls 1

isOpenMethod · 0.80

Tested by

no test coverage detected