Skip to content

Commit

Permalink
Do not restrict windowed mode to Windows in run.py
Browse files Browse the repository at this point in the history
All editor platforms have `--no-window` option now: godotengine/godot#42276.

[ci skip]
  • Loading branch information
Xrayez committed May 15, 2021
1 parent 685ba57 commit 06dc547
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def get_engine_executable_path():
def run(p_args, windowed=False): # Assumes the first arg is the binary path.
args = p_args.copy()
if not windowed:
if sys.platform.startswith("win"):
args.insert(1, "--no-window") # Only implemented on Windows.
args.insert(1, "--no-window")
return subprocess.run(args).returncode


Expand All @@ -49,7 +48,7 @@ def run(p_args, windowed=False): # Assumes the first arg is the binary path.

parser = argparse.ArgumentParser()
parser.add_argument("--windowed", action="store_true", default=False,
help="Run the tool in windowed mode, disabled by default (Windows only).")
help="Run the tool in windowed mode, disabled by default.")

subparsers = parser.add_subparsers(dest="tool")

Expand Down

0 comments on commit 06dc547

Please sign in to comment.