Fix default icon export

This commit is contained in:
luboslenco
2025-04-10 15:43:41 +02:00
parent 07ad07e02b
commit 087807447f
2 changed files with 19 additions and 8 deletions
+8 -8
View File
@@ -2225,24 +2225,24 @@ class CompilerCommandsExporter extends Exporter {
// ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
function export_ico(icon, to, from) {
if (!fs_exists(path_join(from, icon))) {
from = irondir;
icon = "icon.png";
}
if (fs_exists(to) && fs_mtime(to) > fs_mtime(from)) {
return;
}
if (!fs_exists(path_join(from, icon))) {
from = makedir;
icon = "icon.png";
}
amake.export_ico(path_join(from, icon), to);
}
function export_png_icon(icon, to, width, height, from) {
if (!fs_exists(path_join(from, icon))) {
from = irondir;
icon = "icon.png";
}
if (fs_exists(to) && fs_mtime(to) > fs_mtime(from)) {
return;
}
if (!fs_exists(path_join(from, icon))) {
from = makedir;
icon = "icon.png";
}
amake.export_png(path_join(from, icon), to, width, height);
}