mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-06-11 22:33:28 +00:00
19 lines
346 B
C++
19 lines
346 B
C++
#include "Kyoto/Streams/CZipSupport.hpp"
|
|
#include "Kyoto/Alloc/CMemory.hpp"
|
|
#include "zlib/zlib.h"
|
|
|
|
static char* hack() {
|
|
return ZLIB_VERSION;
|
|
}
|
|
|
|
void* CZipSupport::Alloc(void* ptr1, uint w1, uint w2) {
|
|
return new uchar[w1 * w2];
|
|
}
|
|
|
|
void CZipSupport::Free(void* ptr1, void* ptr2) {
|
|
if (ptr2 == nullptr) {
|
|
return;
|
|
}
|
|
delete[] ptr2;
|
|
}
|