check if it already stars for it

This commit is contained in:
ineed bots 2023-11-30 20:12:11 -06:00
parent 18659448d7
commit 3f406c26e7

View File

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