mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
parent
e8e5ef0369
commit
0eabc252b8
1 changed files with 1 additions and 10 deletions
|
@ -84,16 +84,7 @@ bool MainMenuScripting::mayModifyPath(const std::string &path)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
std::string path_user = fs::AbsolutePathPartial(porting::path_user);
|
std::string path_user = fs::AbsolutePathPartial(porting::path_user);
|
||||||
|
if (fs::PathStartsWith(path, path_user))
|
||||||
if (fs::PathStartsWith(path, path_user + DIR_DELIM "client"))
|
|
||||||
return true;
|
|
||||||
if (fs::PathStartsWith(path, path_user + DIR_DELIM "games"))
|
|
||||||
return true;
|
|
||||||
if (fs::PathStartsWith(path, path_user + DIR_DELIM "mods"))
|
|
||||||
return true;
|
|
||||||
if (fs::PathStartsWith(path, path_user + DIR_DELIM "textures"))
|
|
||||||
return true;
|
|
||||||
if (fs::PathStartsWith(path, path_user + DIR_DELIM "worlds"))
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (fs::PathStartsWith(path, fs::AbsolutePathPartial(porting::path_cache)))
|
if (fs::PathStartsWith(path, fs::AbsolutePathPartial(porting::path_cache)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue