summaryrefslogtreecommitdiff
path: root/games/pysycache/files/patch-datas.py
blob: 3c24d9dfe54093c5281d9349d874992ef2c7c38f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- /home/acardenas/pysycache/datas.py	Wed Feb 15 17:23:27 2006
+++ datas.py	Sun Feb 26 23:20:02 2006
@@ -34,7 +34,7 @@
 from pygame.locals import *
 import const
 
-
+sys.path.append("%%DATADIR%%")
 
 #*******************************************************************************
 #                                                                              #
@@ -135,11 +135,11 @@
 def PlayWinnerSound():
 	idxsnd = random.randint(0, 2)
 	if idxsnd == 0 :
-		load_sound('sounds', 'youpee.ogg')
+		load_sound('%%DATADIR%%/sounds', 'youpee.ogg')
 	elif idxsnd == 1 :
-		load_sound('sounds', 'yahoo.ogg')
+		load_sound('%%DATADIR%%/sounds', 'yahoo.ogg')
 	else :
-		load_sound('sounds', 'rire.ogg')
+		load_sound('%%DATADIR%%/sounds', 'rire.ogg')
 
 
 
@@ -150,7 +150,7 @@
 def ShowTransitionOfTheme(duree, fileimage):
 	screen = pygame.display.get_surface()
 	
-	background_image2, background_rect = load_image('images', fileimage)
+	background_image2, background_rect = load_image('%%DATADIR%%/images', fileimage)
 	for i in range(267):
 		screen.blit(background_image2, (0, i), (0, i, 710, 1))
 		screen.blit(background_image2, (0, 534 - i), (0, 534 - i, 710, 1))