From bbe5ba981973faea78dc66ca5267c3f3bf7ab8d3 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:25:54 -0400 Subject: [PATCH] Whoops --- src/game/player_palette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/player_palette.c b/src/game/player_palette.c index 83547b30..65d019c3 100644 --- a/src/game/player_palette.c +++ b/src/game/player_palette.c @@ -73,7 +73,7 @@ void player_palettes_read(const char* palettesPath, bool appendPalettes) { while ((dir = readdir(d)) != NULL) { // sanity check / fill path[] if (!directory_sanity_check(dir, lpath, path)) { continue; } - snprintf(path, SYS_MAX_PATH, "%s", os_get_dir_name(dir)); + snprintf(path, SYS_MAX_PATH, "%s", dir->d_name); // strip the name before the . char* c = path;