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"
#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;
}

View File

@ -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;
}