1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00

Run exe files via wine

This commit is contained in:
Ethan O'Brien
2024-10-02 22:02:16 -05:00
parent e756ee2a58
commit 1687d81240
2 changed files with 14 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import io
import tempfile
import wavescan
import subprocess
import platform
from mapper import Mapper
from allocator import Allocator
from filereader import FileReader
@@ -91,6 +92,9 @@ class WwiseExtract:
path(working_dir.name, "patch.pck")
]
if platform.system() != "Windows":
args.insert(0, "wine")
call(args)
with open(path(working_dir.name, "patch.pck"), "rb") as f:
@@ -279,6 +283,9 @@ class WwiseExtract:
path(_input, file)
]
if platform.system() != "Windows":
args.insert(0, "wine")
call(args)
def extract_ffmpeg(self, _input, files, output, _format):
@@ -311,6 +318,9 @@ class WwiseExtract:
filepath
]
if platform.system() != "Windows":
args.insert(0, "wine")
call(args)
### other ###