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
bc5ba1c2
Unverified
Commit
bc5ba1c2
authored
Jun 16, 2020
by
Rémi Verschelde
Committed by
GitHub
Jun 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33148 from Calinou/debug-window-title-suffix
Add a suffix to the window title when running from a debug build
parents
b29a3e7e
a9c60007
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
main.cpp
main/main.cpp
+7
-0
No files found.
main/main.cpp
View file @
bc5ba1c2
...
...
@@ -1917,7 +1917,14 @@ bool Main::start() {
sml
->
set_quit_on_go_back
(
GLOBAL_DEF
(
"application/config/quit_on_go_back"
,
true
));
String
appname
=
ProjectSettings
::
get_singleton
()
->
get
(
"application/config/name"
);
appname
=
TranslationServer
::
get_singleton
()
->
translate
(
appname
);
#ifdef DEBUG_ENABLED
// Append a suffix to the window title to denote that the project is running
// from a debug build (including the editor). Since this results in lower performance,
// this should be clearly presented to the user.
DisplayServer
::
get_singleton
()
->
window_set_title
(
vformat
(
"%s (DEBUG)"
,
appname
));
#else
DisplayServer
::
get_singleton
()
->
window_set_title
(
appname
);
#endif
int
shadow_atlas_size
=
GLOBAL_GET
(
"rendering/quality/shadow_atlas/size"
);
int
shadow_atlas_q0_subdiv
=
GLOBAL_GET
(
"rendering/quality/shadow_atlas/quadrant_0_subdiv"
);
...
...
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