mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-07 02:35:20 +01:00
Refactor ScriptApiSecurity for cleaner separation of concerns
This commit is contained in:
@@ -17,6 +17,13 @@ class EmergeScripting:
|
||||
public:
|
||||
EmergeScripting(EmergeThread *parent);
|
||||
|
||||
protected:
|
||||
bool checkPathInternal(const std::string &abs_path, bool write_required,
|
||||
bool *write_allowed) override {
|
||||
return ScriptApiSecurity::checkPathWithGamedef(getStack(),
|
||||
abs_path, write_required, write_allowed);
|
||||
};
|
||||
|
||||
private:
|
||||
void InitializeModApi(lua_State *L, int top);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user