diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-27 16:30:26 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-27 16:30:26 +0200 |
commit | 0d3b030eb92657dc276a6188f61e5cfdd7e265cb (patch) | |
tree | beb48685c3c300f3af5261799b8111f081f8230c /src/universe.cpp | |
parent | 09c4750ef8973c08d6ef2aba70f5385ffd75f4c4 (diff) | |
download | lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.gz lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.tar.bz2 lanes-0d3b030eb92657dc276a6188f61e5cfdd7e265cb.zip |
Optional Decoda support (disabled by default)
Diffstat (limited to 'src/universe.cpp')
-rw-r--r-- | src/universe.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/universe.cpp b/src/universe.cpp index 9e1ac5f..5fe53d5 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -286,7 +286,11 @@ void Universe::initializeKeepers(lua_State* L_) | |||
286 | 286 | ||
287 | // to see VM name in Decoda debugger | 287 | // to see VM name in Decoda debugger |
288 | lua_pushfstring(_K, "Keeper #%d", _i + 1); // L_: settings K: "Keeper #n" | 288 | lua_pushfstring(_K, "Keeper #%d", _i + 1); // L_: settings K: "Keeper #n" |
289 | lua_setglobal(_K, "decoda_name"); // L_: settings K: | 289 | if constexpr (HAVE_DECODA_NAME()) { |
290 | lua_pushvalue(_K, -1); // K: "Keeper #n" Keeper #n" | ||
291 | lua_setglobal(_K, "decoda_name"); // L_: settings K: "Keeper #n" | ||
292 | } | ||
293 | kLaneNameRegKey.setValue(_K, [](lua_State* L_) { lua_insert(L_, -2); }); // K: | ||
290 | // create the fifos table in the keeper state | 294 | // create the fifos table in the keeper state |
291 | Keepers::CreateFifosTable(_K); | 295 | Keepers::CreateFifosTable(_K); |
292 | STACK_CHECK(_K, 0); | 296 | STACK_CHECK(_K, 0); |