aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-02-14 02:25:48 +0100
committerkdx <kikoodx@paranoici.org>2023-02-14 02:26:32 +0100
commita1377ecb55ba9fb180553a020381431085931cee (patch)
treeb96ff4e817bff9522374151c35790c0b04d8f89c /main.c
parenteff3bfdd813490f028e9e2f9ab1e37fa50671893 (diff)
downloadtzr-a1377ecb55ba9fb180553a020381431085931cee.tar.gz
load typed resources
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 09add6d..ea8937d 100644
--- a/main.c
+++ b/main.c
@@ -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();