[gnome-games/gnome-3-6] gnome-mahjongg: Fix map loading



commit c8b48dfc61a798853cfe3c0aada83298e27eb364
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Sep 25 11:19:01 2012 +1200

    gnome-mahjongg: Fix map loading
    
    (cherry picked from commit 77d8a73a84456221744d06f01b3ba3530262c6aa)

 gnome-mahjongg/src/gnome-mahjongg.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnome-mahjongg/src/gnome-mahjongg.vala b/gnome-mahjongg/src/gnome-mahjongg.vala
index 88bf20a..c137e02 100644
--- a/gnome-mahjongg/src/gnome-mahjongg.vala
+++ b/gnome-mahjongg/src/gnome-mahjongg.vala
@@ -722,13 +722,14 @@ public class Mahjongg : Gtk.Application
                 continue;
 
             var loader = new MapLoader ();
+            var path = Path.build_filename (DATA_DIRECTORY, "maps", filename);
             try
             {
-                loader.load (filename);
+                loader.load (path);
             }
             catch (Error e)
             {
-                warning ("Could not load map %s: %s\n", filename, e.message);
+                warning ("Could not load map %s: %s\n", path, e.message);
                 continue;
             }
             foreach (var map in loader.maps)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]