mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-19 21:22:54 +00:00
check if it already stars for it
This commit is contained in:
parent
18659448d7
commit
3f406c26e7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user