Renamed demo functions for consistency

This commit is contained in:
_ 2018-04-18 00:19:05 -07:00
parent 6afdd02c67
commit ec6e972688
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
#include "devil1pld.h" #include "devil1pld.h"
#define TYPE_ID_LENGTH 4 #define TYPE_ID_LENGTH 4
bool unpackpld(const char *filedata, bool extractpld(const char *filedata,
unsigned int filesize, unsigned int filesize,
const char *filename) { const char *filename) {
if (filedata == NULL || filesize <= 0 || filename == NULL) { if (filedata == NULL || filesize <= 0 || filename == NULL) {
@ -32,7 +32,7 @@ int main(int argc, char ** argv) {
char *f = argv[1]; char *f = argv[1];
unsigned int bufsize = 0; unsigned int bufsize = 0;
char *buffer = loadfile(f, &bufsize); char *buffer = loadfile(f, &bufsize);
unpackpld(buffer, bufsize, f); extractpld(buffer, bufsize, f);
free(buffer); free(buffer);
return 0; return 0;
} }

View File

@ -1,7 +1,7 @@
#include "common.h" #include "common.h"
#include "devil1tex.h" #include "devil1tex.h"
void exporttextures(const char *filedata, void extracttextures(const char *filedata,
unsigned int filesize, unsigned int filesize,
const char *filename) { const char *filename) {
struct TexturePack *p = NULL; struct TexturePack *p = NULL;
@ -36,7 +36,7 @@ int main(int argc, char ** argv) {
char *f = argv[1]; char *f = argv[1];
unsigned int bufsize = 0; unsigned int bufsize = 0;
char *buffer = loadfile(f, &bufsize); char *buffer = loadfile(f, &bufsize);
exporttextures(buffer, bufsize, f); extracttextures(buffer, bufsize, f);
free(buffer); free(buffer);
return 0; return 0;
} }