Failed attempt to not open IPA.exe window
This commit is contained in:
@@ -140,11 +140,12 @@ def build_bootstrap_command(
|
||||
proton: Path | None = None,
|
||||
native: bool | None = None,
|
||||
) -> list[str]:
|
||||
beat_saber_exe = ipa.with_name("Beat Saber.exe")
|
||||
use_native = is_windows() if native is None else native
|
||||
if use_native:
|
||||
return [str(ipa), "-n"]
|
||||
return [str(ipa), str(beat_saber_exe), "-n"]
|
||||
proton_path = proton or _default_proton()
|
||||
return [str(proton_path), "run", str(ipa), "-n"]
|
||||
return [str(proton_path), "run", str(ipa), str(beat_saber_exe), "-n"]
|
||||
|
||||
|
||||
def _terminate_process(process: subprocess.Popen[str]) -> None:
|
||||
@@ -249,15 +250,18 @@ def run_bootstrap(
|
||||
ipa = instance_path / "IPA.exe"
|
||||
if not ipa.is_file():
|
||||
raise FileNotFoundError(f"BSIPA archive did not install IPA.exe: {ipa}")
|
||||
beat_saber_exe = instance_path / "Beat Saber.exe"
|
||||
if not beat_saber_exe.is_file():
|
||||
raise FileNotFoundError(f"Beat Saber executable not found: {beat_saber_exe}")
|
||||
|
||||
command = build_bootstrap_command(ipa, proton=proton, native=use_native)
|
||||
if use_native:
|
||||
tell(f"Running IPA.exe -n natively; timeout {ipa_timeout_seconds}s")
|
||||
tell(f"Running IPA.exe \"Beat Saber.exe\" -n natively; timeout {ipa_timeout_seconds}s")
|
||||
else:
|
||||
proton_path = proton or _default_proton()
|
||||
if not proton_path.is_file():
|
||||
raise FileNotFoundError(f"Proton executable not found: {proton_path}")
|
||||
tell(f"Running IPA.exe -n through Proton; timeout {ipa_timeout_seconds}s")
|
||||
tell(f"Running IPA.exe \"Beat Saber.exe\" -n through Proton; timeout {ipa_timeout_seconds}s")
|
||||
|
||||
completed = _run_ipa(
|
||||
command=command,
|
||||
@@ -265,7 +269,7 @@ def run_bootstrap(
|
||||
timeout_seconds=ipa_timeout_seconds,
|
||||
native=use_native,
|
||||
)
|
||||
tell("Scanning bootstrap files after IPA.exe -n")
|
||||
tell("Scanning bootstrap files after IPA.exe \"Beat Saber.exe\" -n")
|
||||
after = scan_bootstrap_files(instance_path)
|
||||
delta = _files_delta(before, after)
|
||||
state: dict[str, Any] = {
|
||||
|
||||
Reference in New Issue
Block a user