From 223f57dea940a4932277ae7e16cd30e1c04fe9df Mon Sep 17 00:00:00 2001
From: Gonzalo Odiard <godiard@gmail.com>
Date: Thu, 22 Sep 2011 11:58:44 -0300
Subject: [PATCH 1/2] Set the name in the game with the activity title
This is needed because now we do not have a separated widget
to set the game name. If the game name is not present, the generated
xml file is not valid.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
---
activity.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/activity.py b/activity.py
index f6d822e..d2a99df 100644
a
|
b
|
class MemorizeActivity(Activity): |
272 | 272 | os.path.join('sounds', bsnd)) |
273 | 273 | |
274 | 274 | self.game.model.game_path = self.game.model.temp_folder |
| 275 | self.game.model.data['name'] = str(self.get_title()) |
275 | 276 | self.game.model.write() |
276 | 277 | game_zip.write(os.path.join(self.game.model.temp_folder, 'game.xml'), |
277 | 278 | 'game.xml') |