-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rInstallFriendly
] Possible issues and improvements
#31
Comments
I think this is the right place to mention some feedback about the official raylib 5.0 installer, which seems to use the same code.
* I also note (with some amusement) that the 7-zip utility can extract the raylib installer exe directly, and that it does this about 10x faster than the installer itself! |
rInstallFriendly
- Possible issues and improvementsrInstallFriendly
] Possible issues and improvements
@avelican thank you very much for the feedback! Here my answers:
That's because the .zip is directly embedded into the executable with no encryption, 7-zip probably scans the file and detects the .zip header and so it's able to process it. |
Hey, I want to add a couple to this list, mainly from the UX of the app itself:
WindowDontFitOnScreen.mp4 |
Wanted to add some issues relating to audio on Windows 10:
Also the text for license should use "You should accept the License Agreement before continuing.", in case the license is meant to be something such as GPLv3. |
@GithubPrankster Thanks for reporting!
About the text, you can customize all the text of the installer but you are right that a more generic message could be better, just updated it. |
Hi, I just purchased this tool and I like the design and idea of it, but I have some problems when trying to use it:
|
@turanszkij Hi! Thanks for the feedback! And congratulations for Wicked Engine! It looks amazing! 😄 I'm working on About the mentioned issues:
Hopefully, next |
Thanks!
I was just using the default style, didn't change anything. Actually the default style looks a lot like the default theme in Wicked Editor which is great. |
@turanszkij Some of the mentioned points are already reviewed. Still rethinking how HighDPI can be better addressed (beside the x2 scaling). About the icon update over a pre-generated executable in memory... keep working on it... |
UPDATE: For the last two days I've been working on the possibility to update the generated The process goes as follow, using the Win32 API, open the generated // Start updating resources on the specified .exe file
HANDLE hUpdate = BeginUpdateResourceA(exePath, FALSE);
// Update icon resources image data
// NOTE: It must be done for all available icon images and following its constraints (ID, data format, language...)
UpdateResource(hUpdate, RT_ICON, MAKEINTRESOURCE(iconGroupHeader.iconID), 1033, iconData, iconDataSize));
// Finalize the update
EndUpdateResource(hUpdate, FALSE)); It seems the process works successfully when analyzed using a Pepper: But I found some unexpect issues:
As we can see, the new icons are read correctly and used on the console window BUT the main window, managed by GLFW, is displaying the icons cut. My guess is that the GLFW window is processing the icons reading the original icons sizes available in the original At this moment I don't know how to address it... 😞 |
Hi, Issue 1 is Windows Explorer normal behaviour, it caches icon image at that folder location for some time. Renaming the file, reading the properties page, creating shortcuts, or moving to another location, are some ways to ensure seeing the updated resource icon. Issue 2, hard to say... It is strange to see the code UpdateResource RT_ICON 1033 but the resource screenshot displays the same slot as .png in the hex editor instead of a .ico signature. Also, if you didn't create this .RC (resource configuration) and don't need this current structure, perhaps you could simplify a lot, normally this are just listed as IDI_ICON1 ICON "MyApp.ico" but your resource have 8 of icons without name/label? Looks a lot more complex than necessary. Perhaps an easier fix is to ignore the GLFW part and just work like any window hwnd, use ExtractIconA(hInstance, file_path, icon_index) to read from your own resources or use LoadImage(hInstance, file_path,IMAGE_ICON, ...) to read a local file, and SetWindowLongA to replace the window icon (edit, note: this will only works after ShowWindow(), if you want to create the window with the right icon you need to set RegisterClassExA .hIcon before CreateWindowExA). I used Win32API a lot in the past, if you want I can build a small sample code. |
@DarknessFX thank you very much for your answer and all the points/ideas you mention. I finally found the culprit of the issue, it was when updating the RT_ICON_GROUP resource. Despite all RT_ICON data was correctly updated, I mangled the RT_ICON_GROUP data relative to icon sizes (compressed PNGs), issue combined with 2 bytes padding that was automatically added to the structs I defined... My next challenge: update RT_VERSION data, already struggling with blocks headers and key-value pairs... |
List referenced from AuburnSounds/Dplug#792
So a list of issues:
The text was updated successfully, but these errors were encountered: