[gnome-chess] Correctly spell "GNU Chess"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Correctly spell "GNU Chess"
- Date: Sun, 16 Feb 2014 21:16:37 +0000 (UTC)
commit 1ae54858fb78f4d4fcdec14275ed894dca62abc2
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Feb 16 13:20:15 2014 -0600
Correctly spell "GNU Chess"
data/engines.conf | 2 +-
src/gnome-chess.vala | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/data/engines.conf b/data/engines.conf
index 3eb9fbf..1cb41c3 100644
--- a/data/engines.conf
+++ b/data/engines.conf
@@ -73,7 +73,7 @@ binary=glaurung
uci-go-option-easy-0=depth 2
uci-go-option-normal-0=depth 3
-[GNUchess]
+[GNU Chess]
protocol=uci
binary=gnuchess
arg-easy-0=--uci
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 3874b39..5bdd078 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -585,6 +585,10 @@ public class Application : Gtk.Application
if (name == "human")
return null;
+ /* Backwards compatibility with our old spelling of GNU Chess */
+ if (name == "GNUchess")
+ name = "GNU Chess";
+
foreach (var p in ai_profiles)
{
if (name == "" || p.name == name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]