mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
@@ -84,16 +84,7 @@ bool MainMenuScripting::mayModifyPath(const std::string &path)
|
||||
return true;
|
||||
|
||||
std::string path_user = fs::AbsolutePathPartial(porting::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"))
|
||||
if (fs::PathStartsWith(path, path_user))
|
||||
return true;
|
||||
|
||||
if (fs::PathStartsWith(path, fs::AbsolutePathPartial(porting::path_cache)))
|
||||
|
Reference in New Issue
Block a user