diff options
author | kdx <kikoodx@paranoici.org> | 2023-02-14 02:25:48 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-02-14 02:26:32 +0100 |
commit | a1377ecb55ba9fb180553a020381431085931cee (patch) | |
tree | b96ff4e817bff9522374151c35790c0b04d8f89c /main.c | |
parent | eff3bfdd813490f028e9e2f9ab1e37fa50671893 (diff) | |
download | tzr-a1377ecb55ba9fb180553a020381431085931cee.tar.gz |
load typed resources
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -7,6 +7,11 @@ int main(int argc, char **argv) return 1; if (atexit(TZR_Quit)) return TZR_Quit(), 1; + const TZR_Uint id0 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "res.bmp"); + const TZR_Uint id1 = TZR_LoadResourceTyped(TZR_RES_RAW, "main.c"); + if (id0 == 0 || id1 == 0) + return 1; + printf("%s %s\n", TZR_GetResourcePath(id0), TZR_GetResourcePath(id1)); while (!TZR_ShouldQuit()) { TZR_CycleEvents(); TZR_DrawBegin(); |