From 909c83fd4ad50062b977ca8dfa48273eb2376da4 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 25 Mar 2025 16:22:46 +0100 Subject: [PATCH] Avoid path filtering on `TakeScreenshot()` --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 4ccae395f..65c37a23c 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1884,7 +1884,7 @@ void TakeScreenshot(const char *fileName) Image image = { imgData, (int)((float)CORE.Window.render.width*scale.x), (int)((float)CORE.Window.render.height*scale.y), 1, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 }; char path[512] = { 0 }; - strcpy(path, TextFormat("%s/%s", CORE.Storage.basePath, GetFileName(fileName))); + strcpy(path, TextFormat("%s/%s", CORE.Storage.basePath, fileName)); ExportImage(image, path); // WARNING: Module required: rtextures RL_FREE(imgData);