updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / bubbros / bub-n-bros-1.6-home.patch
blob4d2cc317aba33ab78067a83516734aebe5f69b58
1 --- bubbob/images.py 2007-09-08 17:03:41.000000000 +0200
2 +++ bubbob/images.py 2007-09-08 17:57:45.000000000 +0200
3 @@ -454,7 +454,6 @@
4 # check and maybe regenerate the colored image files
5 file = os.path.join('images', 'buildcolors.py')
6 g = {'__name__': '__auto__', '__file__': file}
7 - execfile(file, g)
8 # replace the entries 'filename_%d.ppm' by a family of entries,
9 # one for each color
10 sprmap = {}
11 --- display/pclient.py 2007-09-08 17:03:41.000000000 +0200
12 +++ display/pclient.py 2007-09-08 17:57:45.000000000 +0200
13 @@ -162,8 +162,8 @@
14 if mode[-1].has_key('cfgfile'):
15 self.trackcfgfile = mode[-1]['cfgfile']
16 else:
17 - self.trackcfgfile = os.path.join(DataChunk.SOURCEDIR,
18 - 'http2', 'config.txt')
19 + self.trackcfgfile = os.path.join(os.environ.get('HOME'),
20 + '.bubnbros')
21 self.udpsock = None
22 self.udpsock_low = None
23 self.udpsock2 = None
24 --- http2/httppages.py 2007-09-08 17:03:41.000000000 +0200
25 +++ http2/httppages.py 2007-09-08 17:57:45.000000000 +0200
26 @@ -38,7 +38,7 @@
29 class PageServer:
30 - CONFIGFILE = 'config.txt'
31 + CONFIGFILE = '.bubnbros'
32 localservers = None
34 def __init__(self, Game):
35 @@ -46,7 +46,7 @@
36 self.seed = hex(random.randrange(0x1000, 0x10000))
37 #self.unique_actions = {}
38 self.localhost = gamesrv.HOSTNAME
39 - self.filename = os.path.join(LOCALDIR, self.CONFIGFILE)
40 + self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE)
41 data = self.loadoptionfile()
42 self.globaloptions = Options(data.get('*', {}))
43 self.localoptions = Options(data.get(self.localhost, {}))
44 @@ -333,7 +333,6 @@
45 'buildcolors.py')
46 if os.path.exists(file):
47 g = {'__name__': '__auto__', '__file__': file}
48 - execfile(file, g)
50 if port:
51 address = '%s:%s' % (host, port)