From 765bc4fa726c8b053333db105923a1b02ef43e8e Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Tue, 8 Dec 2015 22:51:55 +0000 Subject: [PATCH 1/2] When the SDL hardware cursor fails, ensure more of the error message is logged. Capture the useful details from the inner exception into the message, as this will be logged. --- OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs index 51fbbfb5f0..f0824c25fd 100644 --- a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs +++ b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs @@ -109,7 +109,7 @@ namespace OpenRA.Platforms.Default } catch (Exception ex) { - throw new InvalidDataException("Failed to create hardware cursor `{0}`".F(name), ex); + throw new InvalidDataException("Failed to create hardware cursor `{0}` - {1}".F(name, ex.Message), ex); } } From 679cff004ec679d20863101c1b77e07109878182 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Tue, 8 Dec 2015 22:53:21 +0000 Subject: [PATCH 2/2] When hardware cursors fail, retry next session. --- OpenRA.Game/Game.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 1385e95c65..76eee3235b 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -336,7 +336,6 @@ namespace OpenRA Console.WriteLine("Error was: " + e.Message); Cursor = new SoftwareCursor(ModData.CursorProvider); - Settings.Graphics.HardwareCursors = false; } } else