aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-27 16:30:26 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-27 16:30:26 +0200
commit0d3b030eb92657dc276a6188f61e5cfdd7e265cb (patch)
treebeb48685c3c300f3af5261799b8111f081f8230c /src/lanes.cpp
parent09c4750ef8973c08d6ef2aba70f5385ffd75f4c4 (diff)
downloadlanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.gz
lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.bz2
lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.zip
Optional Decoda support (disabled by default)
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r--src/lanes.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp
index 20636b2..0ea0900 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -676,6 +676,9 @@ LUAG_FUNC(configure)
676 // increment refcount so that this linda remains alive as long as the universe exists. 676 // increment refcount so that this linda remains alive as long as the universe exists.
677 _U->timerLinda->refcount.fetch_add(1, std::memory_order_relaxed); 677 _U->timerLinda->refcount.fetch_add(1, std::memory_order_relaxed);
678 lua_pop(L_, 1); // L_: settings 678 lua_pop(L_, 1); // L_: settings
679 // store a hidden reference in the registry to make sure the string is kept around even if a lane decides to manually change the "decoda_name" global...
680 kLaneNameRegKey.setValue(L_, [](lua_State* L_) { std::ignore = lua_pushstringview(L_, "main"); });
681
679 } 682 }
680 STACK_CHECK(L_, 1); 683 STACK_CHECK(L_, 1);
681 684