MacOS: Additional improvements and fixes for embedded window support

This commit is contained in:
Stuart Carnie 2025-05-07 06:11:05 +10:00
parent 6a6a1168a5
commit 9290adee38
5 changed files with 50 additions and 13 deletions

View file

@ -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) {