From ec6e972688b3a15217e3f6e3d0e6ba93c5a11671 Mon Sep 17 00:00:00 2001 From: _ <_> Date: Wed, 18 Apr 2018 00:19:05 -0700 Subject: [PATCH] Renamed demo functions for consistency --- demo/pld.c | 4 ++-- demo/texture.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }