Pack the assets into a ZIP bundle
This commit is contained in:
32
baked.h
32
baked.h
@ -1,36 +1,14 @@
|
||||
#ifndef BAKED_H_
|
||||
#define BAKED_H_
|
||||
|
||||
#include "incbin/incbin.h"
|
||||
|
||||
INCBIN_EXTERN(gpp1);
|
||||
|
||||
INCBIN_EXTERN(home_html);
|
||||
INCBIN_EXTERN(page_missing_html);
|
||||
INCBIN_EXTERN(template_blog_html);
|
||||
INCBIN_EXTERN(blog_html);
|
||||
|
||||
INCBIN_EXTERN(simple_css);
|
||||
INCBIN_EXTERN(favicon_ico);
|
||||
#if MY_DEBUG
|
||||
INCBIN_EXTERN(hotreload_js);
|
||||
#endif
|
||||
INCBIN_EXTERN(theme_js);
|
||||
INCBIN_EXTERN(highlight_js);
|
||||
INCBIN_EXTERN(hljs_rainbow_css);
|
||||
INCBIN_EXTERN(marked_js);
|
||||
INCBIN_EXTERN(me_jpg);
|
||||
INCBIN_EXTERN(tmoa_engine_jpg);
|
||||
INCBIN_EXTERN(tmoa_garbage_jpg);
|
||||
|
||||
INCBIN_EXTERN(blog_welcome_md);
|
||||
INCBIN_EXTERN(blog_weird_page_md);
|
||||
INCBIN_EXTERN(blog_curious_case_of_gebs_md);
|
||||
INCBIN_EXTERN(blog_the_making_of_aboba_md);
|
||||
typedef struct {
|
||||
int memfd;
|
||||
void *bufptr;
|
||||
} Baked_Resource_Value;
|
||||
|
||||
typedef struct {
|
||||
char *key; // path
|
||||
int value; // memfd
|
||||
Baked_Resource_Value value;
|
||||
} Baked_Resource;
|
||||
|
||||
void init_baked_resources(void);
|
||||
|
Reference in New Issue
Block a user