diff --git a/demo/pld.c b/demo/pld.c index 34c77ca..2175f15 100644 --- a/demo/pld.c +++ b/demo/pld.c @@ -2,7 +2,7 @@ #include "devil1pld.h" #define TYPE_ID_LENGTH 4 -bool unpackpld(const char *filedata, +bool extractpld(const char *filedata, unsigned int filesize, const char *filename) { if (filedata == NULL || filesize <= 0 || filename == NULL) { @@ -32,7 +32,7 @@ int main(int argc, char ** argv) { char *f = argv[1]; unsigned int bufsize = 0; char *buffer = loadfile(f, &bufsize); - unpackpld(buffer, bufsize, f); + extractpld(buffer, bufsize, f); free(buffer); return 0; } diff --git a/demo/texture.c b/demo/texture.c index 6645c1a..268f58f 100644 --- a/demo/texture.c +++ b/demo/texture.c @@ -1,7 +1,7 @@ #include "common.h" #include "devil1tex.h" -void exporttextures(const char *filedata, +void extracttextures(const char *filedata, unsigned int filesize, const char *filename) { struct TexturePack *p = NULL; @@ -36,7 +36,7 @@ int main(int argc, char ** argv) { char *f = argv[1]; unsigned int bufsize = 0; char *buffer = loadfile(f, &bufsize); - exporttextures(buffer, bufsize, f); + extracttextures(buffer, bufsize, f); free(buffer); return 0; }