Anis' latest D3D9-Refactor Patch.