*** empty log message ***

This commit is contained in:
David Rose 2001-02-15 17:38:17 +00:00
parent afd84ee8ec
commit 312f7352af
2 changed files with 17 additions and 6 deletions

View File

@ -199,6 +199,12 @@ class FFIExternalObject:
self.write(lineStream) self.write(lineStream)
while lineStream.isTextAvailable(): while lineStream.isTextAvailable():
baseRepr = baseRepr + '\n' + lineStream.getLine() baseRepr = baseRepr + '\n' + lineStream.getLine()
except:
try:
# Sometimes write insists on a seconds parameter.
self.write(lineStream, 0)
while lineStream.isTextAvailable():
baseRepr = baseRepr + '\n' + lineStream.getLine()
except: except:
try: try:
# Ok, no write function, lets try output then # Ok, no write function, lets try output then

View File

@ -75,12 +75,17 @@ class Loader:
ModelPool.releaseModel(modelPath) ModelPool.releaseModel(modelPath)
# texture loading funcs # texture loading funcs
def loadTexture(self, texturePath): def loadTexture(self, texturePath, alphaPath = None):
"""loadTexture(self, string) """loadTexture(self, string)
Attempt to load a texture from the given file path using Attempt to load a texture from the given file path using
TexturePool class. Returns None if not found""" TexturePool class. Returns None if not found"""
if alphaPath == None:
Loader.notify.info("Loading texture: %s" % (texturePath) ) Loader.notify.info("Loading texture: %s" % (texturePath) )
texture = TexturePool.loadTexture(texturePath) texture = TexturePool.loadTexture(texturePath)
else:
Loader.notify.info("Loading texture: %s %s" % (texturePath, alphaPath) )
texture = TexturePool.loadTexture(texturePath, alphaPath)
return texture return texture
def unloadTexture(self, texture): def unloadTexture(self, texture):