mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-12 21:00:26 +08:00
5
app.py
5
app.py
@@ -3,6 +3,7 @@ import sys
|
|||||||
import json
|
import json
|
||||||
import math
|
import math
|
||||||
import extract
|
import extract
|
||||||
|
import platform
|
||||||
from PyQt5 import uic
|
from PyQt5 import uic
|
||||||
from requests import get
|
from requests import get
|
||||||
from PyQt5.QtGui import QTextCursor
|
from PyQt5.QtGui import QTextCursor
|
||||||
@@ -169,7 +170,9 @@ class AnimeWwise(QMainWindow):
|
|||||||
self.tabs.setTabEnabled(2, True)
|
self.tabs.setTabEnabled(2, True)
|
||||||
self.tabs.setCurrentIndex(2)
|
self.tabs.setCurrentIndex(2)
|
||||||
print("Finished extracting everything !")
|
print("Finished extracting everything !")
|
||||||
os.startfile(self.folders["output"])
|
|
||||||
|
if platform.system() == "Windows":
|
||||||
|
os.startfile(self.folders["output"])
|
||||||
|
|
||||||
# page 1 - config
|
# page 1 - config
|
||||||
def loadFiles(self):
|
def loadFiles(self):
|
||||||
|
|||||||
10
extract.py
10
extract.py
@@ -3,6 +3,7 @@ import io
|
|||||||
import tempfile
|
import tempfile
|
||||||
import wavescan
|
import wavescan
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import platform
|
||||||
from mapper import Mapper
|
from mapper import Mapper
|
||||||
from allocator import Allocator
|
from allocator import Allocator
|
||||||
from filereader import FileReader
|
from filereader import FileReader
|
||||||
@@ -91,6 +92,9 @@ class WwiseExtract:
|
|||||||
path(working_dir.name, "patch.pck")
|
path(working_dir.name, "patch.pck")
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if platform.system() != "Windows":
|
||||||
|
args.insert(0, "wine")
|
||||||
|
|
||||||
call(args)
|
call(args)
|
||||||
|
|
||||||
with open(path(working_dir.name, "patch.pck"), "rb") as f:
|
with open(path(working_dir.name, "patch.pck"), "rb") as f:
|
||||||
@@ -279,6 +283,9 @@ class WwiseExtract:
|
|||||||
path(_input, file)
|
path(_input, file)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if platform.system() != "Windows":
|
||||||
|
args.insert(0, "wine")
|
||||||
|
|
||||||
call(args)
|
call(args)
|
||||||
|
|
||||||
def extract_ffmpeg(self, _input, files, output, _format):
|
def extract_ffmpeg(self, _input, files, output, _format):
|
||||||
@@ -311,6 +318,9 @@ class WwiseExtract:
|
|||||||
filepath
|
filepath
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if platform.system() != "Windows":
|
||||||
|
args.insert(0, "wine")
|
||||||
|
|
||||||
call(args)
|
call(args)
|
||||||
|
|
||||||
### other ###
|
### other ###
|
||||||
|
|||||||
Reference in New Issue
Block a user