Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b9a22cf authored by Jason Sams's avatar Jason Sams
Browse files

Add boolean support for setVar.

Change-Id: Id64f3b2e43e19fc2a2d5fd81bb98d9ca67aae843
parent 9bf225ef
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -77,6 +77,10 @@ public class Script extends BaseObj {
        mRS.nScriptSetVarI(mID, index, v);
    }

    public void setVar(int index, boolean v) {
        mRS.nScriptSetVarI(mID, index, v ? 1 : 0);
    }

    public void setVar(int index, FieldPacker v) {
        mRS.nScriptSetVarV(mID, index, v.getData());
    }