You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Server platform works on OS X too
This commit is contained in:
@@ -68,6 +68,10 @@ void OS_Server::initialize_core() {
|
||||
crash_handler.initialize();
|
||||
|
||||
OS_Unix::initialize_core();
|
||||
|
||||
#ifdef __APPLE__
|
||||
SemaphoreOSX::make_default();
|
||||
#endif
|
||||
}
|
||||
|
||||
Error OS_Server::initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver) {
|
||||
@@ -87,7 +91,11 @@ Error OS_Server::initialize(const VideoMode &p_desired, int p_video_driver, int
|
||||
|
||||
input = memnew(InputDefault);
|
||||
|
||||
#ifdef __APPLE__
|
||||
power_manager = memnew(power_osx);
|
||||
#else
|
||||
power_manager = memnew(PowerX11);
|
||||
#endif
|
||||
|
||||
_ensure_user_data_dir();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user