mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-20 00:27:20 -05:00
26 lines
654 B
C
26 lines
654 B
C
#ifndef STATIC_MODULE_H
|
|
#define STATIC_MODULE_H
|
|
|
|
#include <stdbool.h>
|
|
#include "global.h"
|
|
|
|
#define STATIC_FOOTER_MAGIC_OFFSET (0)
|
|
#define STATIC_FOOTER_STATIC_PARAM_OFFSET (4)
|
|
#define STATIC_FOOTER_DIGEST_PARAM_OFFSET (8)
|
|
|
|
typedef struct {
|
|
uint autoloadList;
|
|
uint autoloadListEnd;
|
|
uint autoloadStart;
|
|
uint staticBssStart;
|
|
uint staticBssEnd;
|
|
int compressedStatic;
|
|
} StaticParams;
|
|
|
|
bool ReadStaticModule(Component *component, char *filename);
|
|
bool WriteStaticModule(Component *component);
|
|
bool AddSuffixStaticModule(Component *component, char *suffix);
|
|
void FreeStaticModule(Component *component);
|
|
|
|
#endif // STATIC_MODULE_H
|