[Scummvm-git-logs] scummvm master -> 2606eb5a33553a1718fc190541c046665bf9d7b4

aquadran aquadran at gmail.com
Thu Oct 28 09:06:59 UTC 2021


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:
2606eb5a33 STARK: Improve messages while creating renderer.


Commit: 2606eb5a33553a1718fc190541c046665bf9d7b4
    https://github.com/scummvm/scummvm/commit/2606eb5a33553a1718fc190541c046665bf9d7b4
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-10-28T11:06:55+02:00

Commit Message:
STARK: Improve messages while creating renderer.

Changed paths:
    engines/stark/gfx/driver.cpp


diff --git a/engines/stark/gfx/driver.cpp b/engines/stark/gfx/driver.cpp
index 54d2ba0dc9..a8abe1a7ad 100644
--- a/engines/stark/gfx/driver.cpp
+++ b/engines/stark/gfx/driver.cpp
@@ -26,6 +26,7 @@
 #include "engines/stark/gfx/tinygl.h"
 
 #include "common/config-manager.h"
+#include "common/translation.h"
 
 #include "graphics/renderer.h"
 #include "graphics/surface.h"
@@ -33,6 +34,8 @@
 #include "graphics/opengl/context.h"
 #endif
 
+#include "gui/error.h"
+
 #include "engines/util.h"
 
 namespace Stark {
@@ -56,7 +59,7 @@ Driver *Driver::create() {
 
 	if (matchingRendererType != desiredRendererType && desiredRendererType != Graphics::kRendererTypeDefault) {
 		// Display a warning if unable to use the desired renderer
-		warning("Unable to create a '%s' renderer", rendererConfig.c_str());
+		warning("Unable to match a '%s' renderer", rendererConfig.c_str());
 	}
 
 	Driver *driver = nullptr;
@@ -75,12 +78,13 @@ Driver *Driver::create() {
 #endif
 	if (matchingRendererType == Graphics::kRendererTypeTinyGL) {
 		//driver = new TinyGLDriver();
-		error("This game does not currently support software rendering");
 	}
 
 	if (driver)
 		return driver;
-	error("No renderers have been found for this game");
+	warning("No renderers have been found for this game");
+	GUI::displayErrorDialog(Common::U32String::format(_("No renderers have been found for this game")));
+	return driver;
 }
 
 const Graphics::PixelFormat Driver::getRGBAPixelFormat() {




More information about the Scummvm-git-logs mailing list