Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
c404fe58
Unverified
Commit
c404fe58
authored
May 20, 2020
by
Rémi Verschelde
Committed by
GitHub
May 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38515 from Calinou/cli-scene-allow-res-tres
Allow `.res` and `.tres` extensions in the scene CLI positional argument
parents
aec07538
653334cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
main.cpp
main/main.cpp
+5
-1
No files found.
main/main.cpp
View file @
c404fe58
...
...
@@ -1532,7 +1532,11 @@ bool Main::start() {
}
else
if
(
args
[
i
].
length
()
&&
args
[
i
][
0
]
!=
'-'
&&
positional_arg
==
""
)
{
positional_arg
=
args
[
i
];
if
(
args
[
i
].
ends_with
(
".scn"
)
||
args
[
i
].
ends_with
(
".tscn"
)
||
args
[
i
].
ends_with
(
".escn"
))
{
if
(
args
[
i
].
ends_with
(
".scn"
)
||
args
[
i
].
ends_with
(
".tscn"
)
||
args
[
i
].
ends_with
(
".escn"
)
||
args
[
i
].
ends_with
(
".res"
)
||
args
[
i
].
ends_with
(
".tres"
))
{
// Only consider the positional argument to be a scene path if it ends with
// a file extension associated with Godot scenes. This makes it possible
// for projects to parse command-line arguments for custom CLI arguments
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment