def check_active(func):
    """Wrapper for functions that verify a patch is currently loaded."""

    def inner(self, *args):
        if self.active_patch > -1:
            return func(self, *args)

    return inner