Please consider a donation to the Higher Intellect project. See https://preterhuman.net/donate.php or the Donate to Higher Intellect page for more info.

VlSetControlLoop.txt

From Higher Intellect Vintage Wiki
Jump to navigation Jump to search
    if (vlHardware != VLHDW_SIRIUS) { // can't set any of this for Sirius
        for (int i = 2; i > 0; --i) {
            t = 0;
            if (0 > vlSetControl(vlServer, vlPath, memNode, VL_OFFSET, &offset)) {
                if (vlGetErrno() != VLValueOutOfRange) {
                    VLERROR(("inpview: vlSetControl(VL_OFFSET)"));
                    return FALSE;
                }
                t++;
            }

            if (0 > vlSetControl(vlServer, vlPath, memNode, VL_SIZE, &clip)) {
                if (vlGetErrno() != VLValueOutOfRange) {
                    VLERROR(("inpview: vlSetControl(VL_SIZE)"));
                    return FALSE;
                }
                t++;
            }
            if (!t)     // no errors
                break;
        }
    }