Repackaged all non-code ship and comm data.
Every resource that isn't of type CODE now has a resource ID that will not conflict with any other resource, even without switchable resource indices. CODE-type resources currently rely on the ability to switch out such values, and so have been left alone for now. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2926 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -22,6 +22,10 @@ class ResEntry(object):
|
||||
self.res_file = res_file
|
||||
def res_number(self):
|
||||
return res_encode (self.package, self.instance, self.int_type)
|
||||
def csv_line(self):
|
||||
return "%s,%s,%s,%d,%d,%d,%s,%s,%s" % (self.hfile, self.ls2file, self.constant,
|
||||
self.package, self.instance, self.int_type,
|
||||
self.res_id, self.res_type, self.res_file)
|
||||
|
||||
def res_encode(pkg, instance, t):
|
||||
return ((pkg & 0x7ff) << 21) | ((instance & 0x1FFF) << 8) | (t & 0xFF)
|
||||
|
||||
Reference in New Issue
Block a user