Ticket #3114: 0001-Set-the-name-in-the-game-with-the-activity-title.patch

File 0001-Set-the-name-in-the-game-with-the-activity-title.patch, 1008 bytes (added by godiard, 13 years ago)
  • activity.py

    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): 
    272272                                os.path.join('sounds', bsnd))
    273273
    274274        self.game.model.game_path = self.game.model.temp_folder
     275        self.game.model.data['name'] = str(self.get_title())
    275276        self.game.model.write()
    276277        game_zip.write(os.path.join(self.game.model.temp_folder, 'game.xml'),
    277278                'game.xml')