mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-25 16:28:57 +05:30
Renamed demo functions for consistency
This commit is contained in:
parent
6afdd02c67
commit
ec6e972688
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user