Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
Update 'minizip' API
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Feb 8, 2018
1 parent fa391bc commit 2245768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/Q3BSPZipArchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ voidpf IOSystem2Unzip::open(voidpf opaque, const char* filename, int mode) {
return (voidpf) io_system->Open(filename, mode_fopen);
}

uLong IOSystem2Unzip::read(voidpf /*opaque*/, voidpf stream, void* buf, uLong size) {
uint32_t IOSystem2Unzip::read(voidpf /*opaque*/, voidpf stream, void* buf, uint32_t size) {
IOStream* io_stream = (IOStream*) stream;

return io_stream->Read(buf, 1, size);
}

uLong IOSystem2Unzip::write(voidpf /*opaque*/, voidpf stream, const void* buf, uLong size) {
uint32_t IOSystem2Unzip::write(voidpf /*opaque*/, voidpf stream, const void* buf, uint32_t size) {
IOStream* io_stream = (IOStream*) stream;

return io_stream->Write(buf, 1, size);
Expand All @@ -89,7 +89,7 @@ long IOSystem2Unzip::tell(voidpf /*opaque*/, voidpf stream) {
return io_stream->Tell();
}

long IOSystem2Unzip::seek(voidpf /*opaque*/, voidpf stream, uLong offset, int origin) {
long IOSystem2Unzip::seek(voidpf /*opaque*/, voidpf stream, uint32_t offset, int origin) {
IOStream* io_stream = (IOStream*) stream;

aiOrigin assimp_origin;
Expand Down
6 changes: 3 additions & 3 deletions code/Q3BSPZipArchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ class IOSystem2Unzip {

static voidpf open(voidpf opaque, const char* filename, int mode);

static uLong read(voidpf opaque, voidpf stream, void* buf, uLong size);
static uint32_t read(voidpf opaque, voidpf stream, void* buf, uint32_t size);

static uLong write(voidpf opaque, voidpf stream, const void* buf, uLong size);
static uint32_t write(voidpf opaque, voidpf stream, const void* buf, uint32_t size);

static long tell(voidpf opaque, voidpf stream);

static long seek(voidpf opaque, voidpf stream, uLong offset, int origin);
static long seek(voidpf opaque, voidpf stream, uint32_t offset, int origin);

static int close(voidpf opaque, voidpf stream);

Expand Down

0 comments on commit 2245768

Please sign in to comment.