Skip to content

Commit

Permalink
Create temporary merged MB bin/cue in subdir and not in cwd
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed Jul 17, 2023
1 parent 501b0db commit b10f68c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pop-fe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2001,12 +2001,12 @@ def create_manual(source, gameid, subdir='./pop-fe-work/'):
mb = 'MB%d' % (0 if not idx else idx[0])
temp_files.append(mb)
if os.name == 'posix':
subprocess.call(['python3', './binmerge', '-o', '.', cue_file, mb])
subprocess.call(['python3', './binmerge', '-o', subdir, cue_file, mb])
else:
subprocess.call(['binmerge.exe', '-o', '.', cue_file, mb])
cue_file = mb + '.cue'
subprocess.call(['binmerge.exe', '-o', subdir, cue_file, mb])
cue_file = subdir + mb + '.cue'
temp_files.append(cue_file)
img_file = mb + '.bin'
img_file = subdir + mb + '.bin'
temp_files.append(img_file)

cu2_file = cue_file[:-4] + '.cu2'
Expand Down

0 comments on commit b10f68c

Please sign in to comment.