mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Holocaust base.dg
This commit is contained in:
parent
02a7981d04
commit
c6d182a184
2 changed files with 3 additions and 5 deletions
BIN
build/base.dg
BIN
build/base.dg
Binary file not shown.
|
@ -45,6 +45,8 @@ class StridePackager(NiraiPackager):
|
|||
def __init__(self, outfile):
|
||||
NiraiPackager.__init__(self, outfile)
|
||||
self.__manglebase = self.get_mangle_base(self.BASEDIR)
|
||||
self.add_panda3d_dirs()
|
||||
self.add_default_lib()
|
||||
|
||||
def add_source_dir(self, dir):
|
||||
self.add_directory(self.BASEDIR + dir, mangler=self.__mangler)
|
||||
|
@ -76,13 +78,9 @@ class StridePackager(NiraiPackager):
|
|||
self.add_module('niraidata', niraidata, compile=True)
|
||||
|
||||
def process_modules(self):
|
||||
with open('base.dg', 'rb') as f:
|
||||
basesize, = struct.unpack('<I', f.read(4))
|
||||
data = f.read()
|
||||
# TODO: Compression
|
||||
dg = Datagram()
|
||||
dg.addUint32(len(self.modules) + basesize)
|
||||
dg.appendData(data)
|
||||
dg.addUint32(len(self.modules))
|
||||
for moduleName in self.modules:
|
||||
data, size = self.modules[moduleName]
|
||||
|
||||
|
|
Loading…
Reference in a new issue