From 02499a00d272a592b52b23540f550e5308da74c4 Mon Sep 17 00:00:00 2001 From: CoolCat467 <52022020+CoolCat467@users.noreply.github.com> Date: Mon, 29 Sep 2025 08:53:46 -0500 Subject: [PATCH] Fix hot reloading for files not named `game.js` --- lust2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lust2d.c b/lust2d.c index ea68e67..1a4fff4 100644 --- a/lust2d.c +++ b/lust2d.c @@ -123,7 +123,7 @@ int main(int argc, char **argv) while (!WindowShouldClose()) { BeginDrawing(); if (IsKeyPressed(KEY_F5)) { - ret = js_dofile(J, "game.js"); + ret = js_dofile(J, input_path); assert(ret == 0); } if (js_try(J)) {