mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-29 10:12:02 +05:30
28 lines
687 B
C
28 lines
687 B
C
#ifndef DEVIL1PLD_H
|
|
#define DEVIL1PLD_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#pragma pack(push, 1)
|
|
|
|
struct PldHeader {
|
|
int32_t numOffset;
|
|
// array of numOffset elements
|
|
uint32_t *offsets; // <format=hex>
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
// input: pointer to a struct, contents of the .pld file.
|
|
// * = pass by reference of a struct PldHeader
|
|
bool getpldh(struct PldHeader*, const char*);
|
|
|
|
// input: pointer to header, index of offset, filesize
|
|
// * = pass by reference of a struct PldHeader
|
|
int sizeofpldstruct(struct PldHeader*, unsigned int, unsigned int);
|
|
|
|
// input: a pld header struct.
|
|
// * = pass by reference of a struct PldHeader
|
|
void printpldh(struct PldHeader*);
|
|
|
|
#endif |