mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
@@ -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)))
|
||||||
|
Reference in New Issue
Block a user