diff options
author | kdx <kdx@42l.fr> | 2023-02-21 06:39:17 +0100 |
---|---|---|
committer | kdx <kdx@42l.fr> | 2023-02-21 06:39:17 +0100 |
commit | f4ba3eebdd9bc3e13877ba6192b1ae6ec316d926 (patch) | |
tree | d2216154655940d42756e833f5f1c1a4b48d8bdc /main.c | |
parent | 9453525cf52cae6feae383e823b4577c67634cba (diff) | |
download | tzr-f4ba3eebdd9bc3e13877ba6192b1ae6ec316d926.tar.gz |
LoadResource detect filetype from extension
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ int main(int argc, char **argv) /* Load assets. */ const TZR_Uint id0 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "res.bmp"); const TZR_Uint id1 = TZR_LoadResourceTyped(TZR_RES_RAW, "main.c"); - const TZR_Uint id2 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "smile.bmp"); + const TZR_Uint id2 = TZR_LoadResource("smile.bmp"); if (id0 != 1 || id1 != 2 || id2 != 3) return TZR_Quit(), 1; |