mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #108794 from bruvzg/macos_actool_export
[macOS] Add support for exporting macOS 26 Liquid Glass icons.
This commit is contained in:
commit
326b22124a
11 changed files with 132 additions and 5 deletions
|
|
@ -469,6 +469,19 @@ String OS_MacOS::get_bundle_icon_path() const {
|
|||
return ret;
|
||||
}
|
||||
|
||||
String OS_MacOS::get_bundle_icon_name() const {
|
||||
String ret;
|
||||
|
||||
NSBundle *main = [NSBundle mainBundle];
|
||||
if (main) {
|
||||
NSString *icon_name = [[main infoDictionary] objectForKey:@"CFBundleIconName"];
|
||||
if (icon_name) {
|
||||
ret.append_utf8([icon_name UTF8String]);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Get properly capitalized engine name for system paths
|
||||
String OS_MacOS::get_godot_dir_name() const {
|
||||
return String(GODOT_VERSION_SHORT_NAME).capitalize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue