From eeae12ac4d3edc6eda2aa3730585b992c53b40b3 Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Fri, 26 Aug 2022 16:50:18 +0200 Subject: [PATCH] Host services do not support an image file (#812) --- src/raspberrypi/devices/device.h | 2 +- src/raspberrypi/devices/host_services.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raspberrypi/devices/device.h b/src/raspberrypi/devices/device.h index 03df3b2f..b2f069f2 100644 --- a/src/raspberrypi/devices/device.h +++ b/src/raspberrypi/devices/device.h @@ -167,7 +167,7 @@ public: const string GetPaddedName() const; bool SupportsParams() const { return supports_params; } - bool SupportsFile() const { return !supports_params; } + virtual bool SupportsFile() const { return !supports_params; } void SupportsParams(bool supports_paams) { this->supports_params = supports_paams; } const unordered_map GetParams() const { return params; } const string GetParam(const string&); diff --git a/src/raspberrypi/devices/host_services.h b/src/raspberrypi/devices/host_services.h index 28a0292c..73c21325 100644 --- a/src/raspberrypi/devices/host_services.h +++ b/src/raspberrypi/devices/host_services.h @@ -32,6 +32,8 @@ public: int ModeSense6(const DWORD *, BYTE *); int ModeSense10(const DWORD *, BYTE *, int); + bool SupportsFile() const override { return false; } + private: typedef ModePageDevice super;