share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy@disroot.org>
Mon, 19 Jun 2023 14:09:37 +0200
changeset 15990 79b1129b4d03
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Fix game freezing if Format arg contains '%1', '%2', etc. (bug #851)

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