mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-12-01 19:20:56 +05:30
removed prints
This commit is contained in:
parent
0ad61e690d
commit
96b2acf95c
5
main.c
5
main.c
@ -31,16 +31,11 @@ void unpackpld(const char *buffer,
|
|||||||
unsigned int start = 0; // ending offset for data
|
unsigned int start = 0; // ending offset for data
|
||||||
unsigned int end = 0; // ending offset for data
|
unsigned int end = 0; // ending offset for data
|
||||||
for (i = 0; (i + 1) < (ph -> numOffset) + 1; i++) {
|
for (i = 0; (i + 1) < (ph -> numOffset) + 1; i++) {
|
||||||
printf("start: %x - end: %x\n",
|
|
||||||
ph -> offsets[i],
|
|
||||||
ph -> offsets[i + 1]);
|
|
||||||
|
|
||||||
start = ph -> offsets[i];
|
start = ph -> offsets[i];
|
||||||
// the last offset still has some data until the end of file
|
// the last offset still has some data until the end of file
|
||||||
end = (i == (ph -> numOffset) - 1) ? s : ph -> offsets[i + 1];
|
end = (i == (ph -> numOffset) - 1) ? s : ph -> offsets[i + 1];
|
||||||
// copy sector to write buffer
|
// copy sector to write buffer
|
||||||
wsize = end - start;
|
wsize = end - start;
|
||||||
printf("end is %x - i is %d - wsize is %x\n", end, i, wsize);
|
|
||||||
wbuffer = (char*)malloc(sizeof(char) * wsize);
|
wbuffer = (char*)malloc(sizeof(char) * wsize);
|
||||||
memcpy(wbuffer, buffer + start, wsize);
|
memcpy(wbuffer, buffer + start, wsize);
|
||||||
// create a file.
|
// create a file.
|
||||||
|
Loading…
Reference in New Issue
Block a user