浏览代码

Makes the external driver the driver with the second lowest priority.

Because the external driver allways registers a device even ther is no
device, all following drivers would never activated.
der-b 7 年之前
父节点
当前提交
8b8a899c2a
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/openhmd.c

+ 4 - 4
src/openhmd.c

@@ -54,13 +54,13 @@ ohmd_context* OHMD_APIENTRY ohmd_ctx_create(void)
 	ctx->drivers[ctx->num_drivers++] = ohmd_create_xgvr_drv(ctx);
 #endif
 
-#if DRIVER_EXTERNAL
-	ctx->drivers[ctx->num_drivers++] = ohmd_create_external_drv(ctx);
-#endif
-
 #if DRIVER_ANDROID
 	ctx->drivers[ctx->num_drivers++] = ohmd_create_android_drv(ctx);
 #endif
+
+#if DRIVER_EXTERNAL
+	ctx->drivers[ctx->num_drivers++] = ohmd_create_external_drv(ctx);
+#endif
 	// add dummy driver last to make it the lowest priority
 	ctx->drivers[ctx->num_drivers++] = ohmd_create_dummy_drv(ctx);