mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
MacOS: Additional improvements and fixes for embedded window support
This commit is contained in:
parent
6a6a1168a5
commit
9290adee38
5 changed files with 50 additions and 13 deletions
|
@ -287,6 +287,7 @@ bool profile_gpu = false;
|
|||
// Constants.
|
||||
|
||||
static const String NULL_DISPLAY_DRIVER("headless");
|
||||
static const String EMBEDDED_DISPLAY_DRIVER("embedded");
|
||||
static const String NULL_AUDIO_DRIVER("Dummy");
|
||||
|
||||
// The length of the longest column in the command-line help we should align to
|
||||
|
@ -1397,6 +1398,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
audio_driver = NULL_AUDIO_DRIVER;
|
||||
display_driver = NULL_DISPLAY_DRIVER;
|
||||
|
||||
} else if (arg == "--embedded") { // Enable embedded mode.
|
||||
|
||||
display_driver = EMBEDDED_DISPLAY_DRIVER;
|
||||
|
||||
} else if (arg == "--log-file") { // write to log file
|
||||
|
||||
if (N) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue