MORPHOS: logMessage override

Use printf if DEBUG_BUILD only.
This removes a lot of console messages.
This commit is contained in:
BeWorld 2022-06-23 19:00:37 +02:00 committed by Eugene Sandulenko
parent edd4fad03c
commit c883e37e9b
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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