From 3f406c26e7f29d79a431dede811cd9f530da61ec Mon Sep 17 00:00:00 2001 From: ineed bots Date: Thu, 30 Nov 2023 20:12:11 -0600 Subject: [PATCH] check if it already stars for it --- src/component/fileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/fileio.cpp b/src/component/fileio.cpp index 29dc8e9..1e1cc4f 100644 --- a/src/component/fileio.cpp +++ b/src/component/fileio.cpp @@ -57,7 +57,7 @@ namespace fileio game::Scr_Error(utils::string::va("Invalid path: %s", path.c_str()), game::SCRIPTINSTANCE_SERVER, false); } - return "scriptdata/" + path; + return path.starts_with("scriptdata/") ? path : "scriptdata/" + path; } std::filesystem::path build_full_path(const std::string& path)