mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
if a DATA dir is found when extracting ROM, it will add it to self.path_mkwf
This commit is contained in:
parent
e243c5fdfd
commit
fc049d0178
1 changed files with 2 additions and 1 deletions
|
@ -66,13 +66,14 @@ def __init__(self):
|
||||||
"Êtes-vous sûr de vouloir l'utiliser ?")):
|
"Êtes-vous sûr de vouloir l'utiliser ?")):
|
||||||
self.path_mkwf = os.path.realpath(path + "/../../")
|
self.path_mkwf = os.path.realpath(path + "/../../")
|
||||||
elif extension.upper() in ["ISO", "WBFS", "WIA", "CSIO"]:
|
elif extension.upper() in ["ISO", "WBFS", "WIA", "CSIO"]:
|
||||||
|
# Fiding a directory name that dosen't already exist
|
||||||
directory_name, i = "MKWiiFaraphel", 1
|
directory_name, i = "MKWiiFaraphel", 1
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
self.path_mkwf = os.path.realpath(path + f"/../{directory_name}")
|
self.path_mkwf = os.path.realpath(path + f"/../{directory_name}")
|
||||||
if not(os.path.exists(self.path_mkwf)): break
|
if not(os.path.exists(self.path_mkwf)): break
|
||||||
directory_name, i = f"MKWiiFaraphel ({i})", i + 1
|
directory_name, i = f"MKWiiFaraphel ({i})", i + 1
|
||||||
|
|
||||||
|
if os.path.exists(self.path_mkwf + "/DATA/"): self.path_mkwf += "/DATA/"
|
||||||
|
|
||||||
self.Progress(show=True, indeter=True, statut=self.translate("Extraction du jeu..."))
|
self.Progress(show=True, indeter=True, statut=self.translate("Extraction du jeu..."))
|
||||||
subprocess.call(["./tools/wit/wit", "EXTRACT", get_nodir(path), "--DEST", directory_name]
|
subprocess.call(["./tools/wit/wit", "EXTRACT", get_nodir(path), "--DEST", directory_name]
|
||||||
|
|
Loading…
Reference in a new issue