share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Tue, 21 Jan 2014 01:38:06 +0100
changeset 10031 9353632dc661
parent 9985 42cd42e44c9a
permissions -rw-r--r--
let log know when a test finished properly, so that an unexpected termination (segfault, divbyzero, etc) is easier to tell apart from test fail

-- Library for parameters handling

params = {}

function parseParams()
    if ScriptParam ~= nil then
        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
            params[k] = v
        end
    end
end