Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarLua.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-25 00:49:20 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-25 00:49:20 +1000
commitea084165bf2f414a49a559ddf5921b9073fc464c (patch)
treec8f1263d9e11600f3632df2d0202cb884673c97e /source/core/StarLua.hpp
parent8547c56ba4607e1c4efac483f97f01b8ba8c3a01 (diff)
Optimize entityPortrait: Drawable > LuaTable instead of Drawable > Json > LuaTable
Diffstat (limited to 'source/core/StarLua.hpp')
-rw-r--r--source/core/StarLua.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/StarLua.hpp b/source/core/StarLua.hpp
index 0deb76f..792dc09 100644
--- a/source/core/StarLua.hpp
+++ b/source/core/StarLua.hpp
@@ -600,6 +600,8 @@ public:
// Enforce null-terminated string conversion as long as the returned enforcer object is in scope.
LuaNullEnforcer nullTerminate();
+ // Disables null-termination enforcement
+ void setNullTerminated(bool nullTerminated);
private:
friend struct LuaDetail::LuaHandle;
@@ -729,7 +731,7 @@ private:
uint64_t m_instructionCount;
unsigned m_recursionLevel;
unsigned m_recursionLimit;
- unsigned m_nullTerminated;
+ int m_nullTerminated;
HashMap<tuple<String, unsigned>, shared_ptr<LuaProfileEntry>> m_profileEntries;
};