1
0
mirror of synced 2024-11-15 03:27:40 +01:00
ImHex/plugins/libimhex/source/resources.cpp
2021-07-31 17:10:19 +02:00

18 lines
755 B
C++

#define RESOURCE(name, path) __asm__ ( \
".section .rodata\n" \
".global " #name "\n" \
".global " #name "_size\n" \
#name ":\n" \
".incbin \"" path "\"\n" \
".type " #name ", @object\n" \
".size " #name "_size, 1\n" \
#name "_size:\n" \
".int " #name "_size - " #name "\n" \
".align 8\n" \
)
RESOURCE(banner_light, "../../../res/resources/banner_light.png");
RESOURCE(banner_dark, "../../../res/resources/banner_dark.png");
RESOURCE(splash, "../../../res/resources/splash.png");
RESOURCE(cacert, "../../../res/resources/cacert.pem");