author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年01月21日 12:52:30 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年01月21日 12:52:30 +0100 |
commit | 8ff3668eb51c6d7d3445ecfb5f3764162e89b501 (patch) | |
tree | 7c70d5b088aa172124dc77344238db9461323d76 /demo-init.lua | |
parent | fe2cbfdf5313eb694281a77750d9a69e97a27fb5 (diff) | |
parent | 4e7ce8e013fc1e4035eb4511795da6b98c7940e3 (diff) | |
download | gsl-shell-8ff3668eb51c6d7d3445ecfb5f3764162e89b501.tar.gz |
-rw-r--r-- | demo-init.lua | 6 |
diff --git a/demo-init.lua b/demo-init.lua index 4c897a16..bfb118ed 100644 --- a/demo-init.lua +++ b/demo-init.lua @@ -5,18 +5,18 @@ local function load_demo(name) local record = require('demos/' .. name) local group, info = record[1], record[2] local section = demo_list[group] - if not section then + if not section then section = {} demo_list[group] = section end local i = #section - for k, v in ipairs(info) do + for k, v in ipairs(info) do section[i+k] = v end end local demo_files = { - 'fft', 'bspline', 'wave-particle', 'plot', 'fractals', 'ode', 'nlinfit', 'integ', 'anim', 'linfit', 'contour', 'svg', 'graphics', 'sf'} + 'fft', 'bspline', 'wave-particle', 'plot', 'fractals', 'ode', 'nlinfit', 'integ', 'anim', 'linfit', 'contour', 'svg', 'graphics', 'sf', 'vegas'} for i, name in ipairs(demo_files) do load_demo(name) |