mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Refactor some Lua API functions in preparation for async env
This commit is contained in:
parent
e6385e2ab7
commit
56a558baf8
8 changed files with 37 additions and 45 deletions
|
@ -292,11 +292,10 @@ public:
|
|||
|
||||
virtual const std::vector<ModSpec> &getMods() const;
|
||||
virtual const ModSpec* getModSpec(const std::string &modname) const;
|
||||
void getModNames(std::vector<std::string> &modlist);
|
||||
std::string getBuiltinLuaPath();
|
||||
virtual std::string getWorldPath() const { return m_path_world; }
|
||||
|
||||
inline bool isSingleplayer()
|
||||
inline bool isSingleplayer() const
|
||||
{ return m_simple_singleplayer_mode; }
|
||||
|
||||
inline void setAsyncFatalError(const std::string &error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue