mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-03 18:47:20 +01:00
Merge pull request #638 from slashiee/txtp_maker
txtp_maker: Update get_stream_mask to work with latest vgmstream
This commit is contained in:
commit
09c2deb04e
@ -330,12 +330,12 @@ class TxtpMaker(object):
|
|||||||
def get_stream_mask(self, layer):
|
def get_stream_mask(self, layer):
|
||||||
cfg = self.cfg
|
cfg = self.cfg
|
||||||
|
|
||||||
mask = '#c'
|
mask = '#C'
|
||||||
|
|
||||||
loops = cfg.layers
|
loops = cfg.layers + 1
|
||||||
if layer + cfg.layers > self.channels:
|
if layer + cfg.layers > self.channels:
|
||||||
loops = self.channels - cfg.layers
|
loops = self.channels - cfg.layers
|
||||||
for ch in range(0,loops):
|
for ch in range(1,loops):
|
||||||
mask += str(layer+ch) + ','
|
mask += str(layer+ch) + ','
|
||||||
|
|
||||||
mask = mask[:-1]
|
mask = mask[:-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user