[Scummvm-git-logs] scummvm branch-2-6 -> be9858184e4fbfd5fdd510bb6fe0048eb483d41a

aquadran noreply at scummvm.org
Sun Jun 19 18:14:22 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
be9858184e PS3: Handle platform specific features


Commit: be9858184e4fbfd5fdd510bb6fe0048eb483d41a
    https://github.com/scummvm/scummvm/commit/be9858184e4fbfd5fdd510bb6fe0048eb483d41a
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2022-06-19T20:14:07+02:00

Commit Message:
PS3: Handle platform specific features

Changed paths:
    backends/platform/sdl/ps3/ps3.cpp
    backends/platform/sdl/ps3/ps3.h


diff --git a/backends/platform/sdl/ps3/ps3.cpp b/backends/platform/sdl/ps3/ps3.cpp
index ec4541b7031..0f7653e3511 100644
--- a/backends/platform/sdl/ps3/ps3.cpp
+++ b/backends/platform/sdl/ps3/ps3.cpp
@@ -124,3 +124,14 @@ Common::HardwareInputSet *OSystem_PS3::getHardwareInputSet() {
 
 	return inputSet;
 }
+
+bool OSystem_PS3::hasFeature(Feature f) {
+	if (f == kFeatureDisplayLogFile ||
+	    f == kFeatureOpenUrl ||
+	    f == kFeatureSystemBrowserDialog ||
+	    f == kFeatureClipboardSupport) {
+		return false;
+	}
+
+	return OSystem_SDL::hasFeature(f);
+}
diff --git a/backends/platform/sdl/ps3/ps3.h b/backends/platform/sdl/ps3/ps3.h
index 24a43dde597..2f938b4f930 100644
--- a/backends/platform/sdl/ps3/ps3.h
+++ b/backends/platform/sdl/ps3/ps3.h
@@ -28,6 +28,7 @@ class OSystem_PS3 : public OSystem_SDL {
 public:
 	void init() override;
 	void initBackend() override;
+	bool hasFeature(Feature f) override;
 	Common::HardwareInputSet *getHardwareInputSet() override;
 
 protected:




More information about the Scummvm-git-logs mailing list