CommonMPQ.h 598 B

12345678910111213141516171819
  1. #ifndef _MF_COMMON_MPQ_H_
  2. #define _MF_COMMON_MPQ_H_
  3. #include <stdio.h>
  4. extern "C"
  5. {
  6. // [DllImport("__Internal")]
  7. // public static extern bool _Decompress_z(string srcFile, string dstFile);
  8. bool _Decompress_z(const char * src_file, const char * dst_file);
  9. //[DllImport("__Internal")]
  10. //public static extern bool _Decompress_z_mem(byte[] src, int s_offset, int s_size, byte[] dst, int dst_offset, int dst_size);
  11. bool _Decompress_z_mem(unsigned char* src, int s_start, int s_end, unsigned char* dst, int dst_start, int dst_end);
  12. int _Decompress_bytes();
  13. }
  14. #endif /* _MF_COMMON_MPQ_H_ */