[Scummvm-git-logs] scummvm master -> c883e37e9bdfe195b3cec0fca0ebd7b9be2c4849

sev- noreply at scummvm.org
Thu Jun 23 18:49:08 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:
c883e37e9b MORPHOS: logMessage override


Commit: c883e37e9bdfe195b3cec0fca0ebd7b9be2c4849
    https://github.com/scummvm/scummvm/commit/c883e37e9bdfe195b3cec0fca0ebd7b9be2c4849
Author: BeWorld (36823759+BeWorld2018 at users.noreply.github.com)
Date: 2022-06-23T20:49:05+02:00

Commit Message:
MORPHOS: logMessage override

Use printf if DEBUG_BUILD only.
This removes a lot of console messages.

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


diff --git a/backends/platform/sdl/morphos/morphos.cpp b/backends/platform/sdl/morphos/morphos.cpp
index 48924bade7f..363aff87d1a 100644
--- a/backends/platform/sdl/morphos/morphos.cpp
+++ b/backends/platform/sdl/morphos/morphos.cpp
@@ -19,6 +19,7 @@
  *
  */
 
+#define FORBIDDEN_SYMBOL_EXCEPTION_printf
 #include "common/scummsys.h"
 
 #ifdef __MORPHOS__
@@ -51,4 +52,9 @@ bool OSystem_MorphOS::hasFeature(Feature f) {
 	return OSystem_SDL::hasFeature(f);
 }
 
+void OSystem_MorphOS::logMessage(LogMessageType::Type type, const char * message) {
+#ifdef DEBUG_BUILD
+	printf("%s\n", message);
+#endif
+}
 #endif
diff --git a/backends/platform/sdl/morphos/morphos.h b/backends/platform/sdl/morphos/morphos.h
index 68679bba272..761823abe0c 100644
--- a/backends/platform/sdl/morphos/morphos.h
+++ b/backends/platform/sdl/morphos/morphos.h
@@ -28,6 +28,7 @@ class OSystem_MorphOS : public OSystem_SDL {
 public:
 	void init() override;
 	virtual bool hasFeature(Feature f);
+	void logMessage(LogMessageType::Type type, const char *message) override;
 };
 
 #endif




More information about the Scummvm-git-logs mailing list