Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-09-19 15:03:43 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-09-19 15:03:43 (GMT)
commit1d85755b9a93149d380a944c2c3b08ab7a384c96 (patch)
treed6990854d1f1ee53f3ffd9a3918b37ceb94febb8 /activity.py
parent1742303dc81b8b3872e3147f7cdbaae9490554ac (diff)
Avoid renaiming sound files
Before the sound files were renamed to have specific file names, different if the game have equals or non equals tiles, but if the user change this property had errors saving/loading the game.
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/activity.py b/activity.py
index d2db870..9bba185 100644
--- a/activity.py
+++ b/activity.py
@@ -258,23 +258,14 @@ class MemorizeActivity(Activity):
# asnd
asnd = self.game.model.pairs[pair].get_property('asnd')
if asnd != None:
- if equal_pairs:
- asndfile = 'snd' + str(pair) + '.ogg'
- else:
- asndfile = 'asnd' + str(pair) + '.ogg'
- _logger.error(asndfile + ': ' + asnd)
game_zip.write(os.path.join(temp_snd_folder, asnd),
- os.path.join('sounds', asndfile))
+ os.path.join('sounds', asnd))
# bsnd
bsnd = self.game.model.pairs[pair].get_property('bsnd')
if bsnd != None:
- if equal_pairs:
- bsndfile = 'snd' + str(pair) + '.ogg'
- else:
- bsndfile = 'bsnd' + str(pair) + '.ogg'
game_zip.write(os.path.join(temp_snd_folder, bsnd),
- os.path.join('sounds', bsndfile))
+ os.path.join('sounds', bsnd))
self.game.model.game_path = self.game.model.temp_folder
self.game.model.write()