String imagePath = property.getPropertyValue()
.getAdvancedOptionSubValue(ItemName.CAMERA, CameraViewItem.ITEM_FRONT_IMAGE);
// front, virtual
- config.addQemuOption("-device", "maru-camera,index=1,path=" + imagePath);
+ config.addVariableWithSpace(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH1, imagePath);
+ config.addQemuOption("-device", "maru-camera,index=1,path="
+ + varForm(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH1));
}
// Check rear camera.
String imagePath = property.getPropertyValue()
.getAdvancedOptionSubValue(ItemName.CAMERA, CameraViewItem.ITEM_REAR_IMAGE);
// rear, virtual
- config.addQemuOption("-device", "maru-camera,index=0,path=" + imagePath);
+ config.addVariableWithSpace(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH0, imagePath);
+ config.addQemuOption("-device", "maru-camera,index=0,path="
+ + varForm(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH0));
}
}
VAR_BIOS_PATH("bios_path"),
VAR_KERNEL("kernel"),
VAR_KERNEL_LOG("kernel_log"),
- VAR_APPEND("append");
+ VAR_APPEND("append"),
+ VAR_VIRT_CAM_IMG_PATH0("virt_cam_img_path0"),
+ VAR_VIRT_CAM_IMG_PATH1("virt_cam_img_path1");
String variable;
OPTION_KEY(String var) {