Originally cloned from https://github.com/TeamHorizon/vendor_xenonhd