unzip.h 535 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * unzip.h
  3. * -------
  4. * Purpose: Header file for .zip loader
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #pragma once
  10. #include "openmpt/all/BuildSettings.hpp"
  11. #include "archive.h"
  12. OPENMPT_NAMESPACE_BEGIN
  13. class CZipArchive : public ArchiveBase
  14. {
  15. protected:
  16. void *zipFile;
  17. public:
  18. CZipArchive(FileReader &file);
  19. ~CZipArchive() override;
  20. public:
  21. bool ExtractFile(std::size_t index) override;
  22. };
  23. OPENMPT_NAMESPACE_END