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