From f345c6f88df837453fb83b238bffa8485db3eedb Mon Sep 17 00:00:00 2001 From: mehbark Date: Thu, 21 Dec 2023 14:40:51 -0500 Subject: [PATCH] even more bad news from c test --- main.c | 5 ++++- main.scm | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 9f1e2bb..da53a2b 100644 --- a/main.c +++ b/main.c @@ -1,15 +1,18 @@ #include "raylib.h" +#include int main() { InitWindow(100, 100, "hello from C"); + printf("%s\n", GetApplicationDirectory()); Texture2D texture = LoadTexture("skins/xp-flowers.bmp"); + Texture2D fail = LoadTexture("fail"); SetTargetFPS(120); while (!WindowShouldClose()) { BeginDrawing(); ClearBackground(RAYWHITE); - DrawTexture(texture, 50, 50, WHITE); + DrawTexture(texture, 0, 0, WHITE); EndDrawing(); } diff --git a/main.scm b/main.scm index acc697d..9debe0d 100644 --- a/main.scm +++ b/main.scm @@ -198,7 +198,11 @@ (map (lambda (p) (string-append p "/" filename)) *skin-paths*))) (unless path - (error 'load-skin (string-append "failed to load `" filename "`. tried paths " (with-output-to-string (lambda () (write *skin-paths*)))))) + (error + 'load-skin + (string-append + "failed to load `" filename "`. tried paths " + (with-output-to-string (lambda () (write *skin-paths*)))))) (load-texture path))