/[libvob]/libvob/org/nongnu/libvob/paper/texcache.py
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/paper/texcache.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jvk, Wed Mar 26 19:23:42 2003 UTC revision 1.3 by jvk, Thu Mar 27 10:39:42 2003 UTC
# Line 40  def getCachedTexture(args, shade_all_lev Line 40  def getCachedTexture(args, shade_all_lev
40      global texcache      global texcache
41    
42      name = args[6]      name = args[6]
43      file = "src/texture/" + name      file = "../libvob/src/texture/" + name
44      binfile = file + ".bin"      binfile = file + ".bin"
45      srcfile = file + ".texture"      srcfile = file + ".texture"
46    
# Line 48  def getCachedTexture(args, shade_all_lev Line 48  def getCachedTexture(args, shade_all_lev
48      srctime = File(srcfile).lastModified()      srctime = File(srcfile).lastModified()
49    
50      if srctime > bintime:      if srctime > bintime:
51          os.system("make -C src/texture " + name + ".bin")          os.system("make -C ./libvob/src/texture " + name + ".bin")
52                    
53      key = str((args,shade_all_levels))      key = str((args,shade_all_levels))
54      if texcache.has_key(key) and texcache[(key,"ctime")] == srctime:      if texcache.has_key(key) and texcache[(key,"ctime")] == srctime:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26