From 11ccfad1aabec468fd92e1b567f3f9d94b5acc4b Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 13 May 2021 09:25:09 +0300 Subject: [macOS] Prefer .app bundle icon over the default one. --- core/os/os.cpp | 5 +++++ core/os/os.h | 1 + 2 files changed, 6 insertions(+) (limited to 'core/os') diff --git a/core/os/os.cpp b/core/os/os.cpp index ca1b798e11..0641c86ad6 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -305,6 +305,11 @@ String OS::get_bundle_resource_dir() const { return "."; } +// Path to macOS .app bundle embedded icon +String OS::get_bundle_icon_path() const { + return String(); +} + // OS specific path for user:// String OS::get_user_data_dir() const { return "."; diff --git a/core/os/os.h b/core/os/os.h index 7198607237..95e0f1d660 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -250,6 +250,7 @@ public: virtual String get_config_path() const; virtual String get_cache_path() const; virtual String get_bundle_resource_dir() const; + virtual String get_bundle_icon_path() const; virtual String get_user_data_dir() const; virtual String get_resource_dir() const; -- cgit v1.2.3