share/hedgewars/Data/Scripts/Params.lua
author antonc27 <antonc27@mail.ru>
Tue, 03 May 2016 01:13:41 +0200
changeset 11795 ac93cfc17365
parent 9985 42cd42e44c9a
permissions -rw-r--r--
- Pass also userPath to LoadLocaleWrapper TODO: Find a way to simplify all of this...

-- 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