diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 17:22:45 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 17:22:45 +0200 |
commit | 91a34bd09900967e8b9cccdbd6d94a9f8cc8506c (patch) | |
tree | 26ca2e83a6841361ac2d104c9d06bf78edd166e5 /src/linda.cpp | |
parent | d9a149a230f9b320113020789beb78a883da3b40 (diff) | |
download | lanes-91a34bd09900967e8b9cccdbd6d94a9f8cc8506c.tar.gz lanes-91a34bd09900967e8b9cccdbd6d94a9f8cc8506c.tar.bz2 lanes-91a34bd09900967e8b9cccdbd6d94a9f8cc8506c.zip |
lanes.linda("auto")
Diffstat (limited to 'src/linda.cpp')
-rw-r--r-- | src/linda.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linda.cpp b/src/linda.cpp index 33d9f0b..8b6df8e 100644 --- a/src/linda.cpp +++ b/src/linda.cpp | |||
@@ -88,7 +88,8 @@ template <bool OPT> | |||
88 | if (!_lindaName.empty()) { | 88 | if (!_lindaName.empty()) { |
89 | std::ignore = luaG_pushstringview(L_, _lindaName); | 89 | std::ignore = luaG_pushstringview(L_, _lindaName); |
90 | } else { | 90 | } else { |
91 | lua_pushfstring(L_, "%p", _linda); | 91 | // obfuscate the pointer so that we can't read the value with our eyes out of a script |
92 | std::ignore = luaG_pushstringview(L_, "%p", std::bit_cast<uintptr_t>(_linda) ^ kConfigRegKey.storage); | ||
92 | } | 93 | } |
93 | lua_concat(L_, 2); | 94 | lua_concat(L_, 2); |
94 | return 1; | 95 | return 1; |