From 283929b1a26b585dab7127bd0cc4c09f8a3b8e6f Mon Sep 17 00:00:00 2001 From: Hero <68159082+HeroEyad@users.noreply.github.com> Date: Mon, 18 Aug 2025 02:08:21 +0300 Subject: [PATCH] leaving this here. --- source/funkin/backend/utils/native/Windows.hx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/funkin/backend/utils/native/Windows.hx b/source/funkin/backend/utils/native/Windows.hx index 78aa5e10..f6ecb215 100644 --- a/source/funkin/backend/utils/native/Windows.hx +++ b/source/funkin/backend/utils/native/Windows.hx @@ -185,6 +185,16 @@ final class Windows { ') public static function setWindowTitleColor(title:String, color:Array) {} + @:functionCode(' + HWND window = GetConsoleWindow(); + HICON smallIcon = (HICON) LoadImage(NULL, path, IMAGE_ICON, 16, 16, LR_LOADFROMFILE); + HICON icon = (HICON) LoadImage(NULL, path, IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE); + SendMessage(window, WM_SETICON, ICON_SMALL, (LPARAM)smallIcon); + SendMessage(window, WM_SETICON, ICON_BIG, (LPARAM)icon); + ') + public static function setWindowIcon(path:String) {} + + @:functionCode(' // https://stackoverflow.com/questions/15543571/allocconsole-not-displaying-cout