mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make wad contents searches case-insensitive.
This commit is contained in:
parent
8587079c0d
commit
446016e84e
1 changed files with 2 additions and 1 deletions
|
@ -62,12 +62,13 @@ class WadFile:
|
|||
type, compression, pad1, pad2 = read_byte(f, 4)
|
||||
name = read_string(f, 16)
|
||||
name = name.split("\0")[0]
|
||||
name = name.lower()
|
||||
wf.lumps[name] = WadFile.LumpInfo(filepos, disksize, size,
|
||||
type, compression)
|
||||
return wf
|
||||
return None
|
||||
def getLump(self, name):
|
||||
return self.lumps[name]
|
||||
return self.lumps[name.lower()]
|
||||
def getData(self, name):
|
||||
lump = self.getLump(name)
|
||||
f = open(self.path, "rb")
|
||||
|
|
Loading…
Reference in a new issue