You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
MacOS: Additional improvements and fixes for embedded window support
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user