even more bad news from c test

This commit is contained in:
mehbark 2023-12-21 14:40:51 -05:00
parent fe8c727392
commit f345c6f88d
2 changed files with 9 additions and 2 deletions

5
main.c
View file

@ -1,15 +1,18 @@
#include "raylib.h"
#include <stdio.h>
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();
}

View file

@ -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))