aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-09-09 18:29:57 +1000
committeronefang2021-09-09 18:29:57 +1000
commitf07e301cb4c189357f2fc8a29f4521a2ab0fbd75 (patch)
tree8c361217117ea513e01978ec7605ae0cf814e062
parentAdd the shini new sandbox to the sims list. (diff)
downloadopensim-SC-f07e301cb4c189357f2fc8a29f4521a2ab0fbd75.zip
opensim-SC-f07e301cb4c189357f2fc8a29f4521a2ab0fbd75.tar.gz
opensim-SC-f07e301cb4c189357f2fc8a29f4521a2ab0fbd75.tar.bz2
opensim-SC-f07e301cb4c189357f2fc8a29f4521a2ab0fbd75.tar.xz
Default sims.lua.
-rw-r--r--example/etc/sims.lua6
-rw-r--r--src/sledjchisl/sledjchisl.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/example/etc/sims.lua b/example/etc/sims.lua
new file mode 100644
index 0000000..94e2752
--- /dev/null
+++ b/example/etc/sims.lua
@@ -0,0 +1,6 @@
1sims = -- Note these are .shini / tmux tab short names.
2{
3 {['type'] = 'unsorted';
4 },
5}
6return sims
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index b25b993..d287007 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -1680,7 +1680,9 @@ simList *getSims()
1680 ourSims->simsLua = Lua2tree(file, "sims"); 1680 ourSims->simsLua = Lua2tree(file, "sims");
1681 if (NULL == ourSims->simsLua) 1681 if (NULL == ourSims->simsLua)
1682 { 1682 {
1683 ourSims->simsLua = qtreetbl(0); 1683 free(file);
1684 file = xmprintf("%s/current/example/etc/sims.lua", scRoot);
1685 ourSims->simsLua = Lua2tree(file, "sims");
1684 ourSims->doIt = TRUE; 1686 ourSims->doIt = TRUE;
1685 } 1687 }
1686 1688