diff options
author | Ron B. Yeh <ronyeh@gmail.com> | 2023-04-04 17:05:37 -0700 |
---|---|---|
committer | Ron B. Yeh <ronyeh@gmail.com> | 2023-04-04 17:05:37 -0700 |
commit | c8cbc671566d832d5664281fee7bee1f871c3969 (patch) | |
tree | 35b5fa104389575a9ba180097c568acbba82021e /platform/macos/export/export_plugin.cpp | |
parent | e11ae937d50946a9e170303eba0705d6377d080d (diff) | |
download | redot-engine-c8cbc671566d832d5664281fee7bee1f871c3969.tar.gz |
Rename `iconpath => icon_path` & `hasicon => has_icon`.
Diffstat (limited to 'platform/macos/export/export_plugin.cpp')
-rw-r--r-- | platform/macos/export/export_plugin.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index 5a097adf39..8eabcfcc2b 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -1368,16 +1368,16 @@ Error EditorExportPlatformMacOS::export_project(const Ref<EditorExportPreset> &p if (file == "Contents/Resources/icon.icns") { // See if there is an icon. - String iconpath; + String icon_path; if (p_preset->get("application/icon") != "") { - iconpath = p_preset->get("application/icon"); + icon_path = p_preset->get("application/icon"); } else { - iconpath = GLOBAL_GET("application/config/icon"); + icon_path = GLOBAL_GET("application/config/icon"); } - if (!iconpath.is_empty()) { - if (iconpath.get_extension() == "icns") { - Ref<FileAccess> icon = FileAccess::open(iconpath, FileAccess::READ); + if (!icon_path.is_empty()) { + if (icon_path.get_extension() == "icns") { + Ref<FileAccess> icon = FileAccess::open(icon_path, FileAccess::READ); if (icon.is_valid()) { data.resize(icon->get_length()); icon->get_buffer(&data.write[0], icon->get_length()); @@ -1385,7 +1385,7 @@ Error EditorExportPlatformMacOS::export_project(const Ref<EditorExportPreset> &p } else { Ref<Image> icon; icon.instantiate(); - err = ImageLoader::load_image(iconpath, icon); + err = ImageLoader::load_image(icon_path, icon); if (err == OK && !icon->is_empty()) { _make_icon(p_preset, icon, data); } |