diff --git a/include/devil1tex.h b/include/devil1tex.h index 71ad66e..117ee29 100644 --- a/include/devil1tex.h +++ b/include/devil1tex.h @@ -52,9 +52,8 @@ unsigned int gettexturebatch( const char*, unsigned int); -void gettextures(unsigned int*, - struct TexturePack*, - struct TextureBatch**, - struct TextureBatchDescriptor**); +void locatetextures(unsigned int*, + struct TexturePack*, + struct TextureBatchDescriptor**); #endif diff --git a/src/devil1tex.c b/src/devil1tex.c index 91316bb..dd22cd5 100644 --- a/src/devil1tex.c +++ b/src/devil1tex.c @@ -78,10 +78,9 @@ unsigned int gettexturebatch( return totaltextures; } -void gettextures(unsigned int *t, - struct TexturePack *tp, - struct TextureBatch **tb, - struct TextureBatchDescriptor **bds) { +void locatetextures(unsigned int *t, + struct TexturePack *tp, + struct TextureBatchDescriptor **bds) { unsigned int i; unsigned int j; // k is access to index of textures. diff --git a/test/main.c b/test/main.c index 0ee9247..bb45c5a 100644 --- a/test/main.c +++ b/test/main.c @@ -124,7 +124,7 @@ void unpacktextures(const char *filedata, filesize); unsigned int *tloc = (unsigned int*) malloc(sizeof(unsigned int) * texturecount); - gettextures(tloc, tp, batches, descripts); + locatetextures(tloc, tp, descripts); // add 3 to buffer for digits, & 4 for file extension char *fmt = (char*)malloc(strlen(filename) + 3 + 4); unsigned int texsize = 0;