- Joined
- Jun 26, 2017
- Messages
- 821
I was reading through your recent changes in transcc and thought, it might be a good idea to use a constant like #GLFW_ICON_WINNT="path" to enable the user to choose the source and name of the app icon in glfw. If I understood it right, now you have to place the icon next to the main game.cxs file and name it game.ico !?
I played a little with this and it is quite simple: With GetConfigVar(GLFW_ICON_WINNT) you get the filepath the user chose.
Having a config tool in mind it would be very handy if you could control every preference by setting it in the config.cxs file.
For Android there could be a constant #ANDROID_ICONDIR="dirPath" because Android Studio provides a nice tool that generates a directory with all the different resolutions of your icon.
I played a little with this and it is quite simple: With GetConfigVar(GLFW_ICON_WINNT) you get the filepath the user chose.
Cerberus:
Local iconFile:String = GetConfigVar("GLFW_ICON_WINNT")
If iconFile And FileType(iconFile) = FILETYPE_FILE
CopyIcon(iconFile)
EndIf
For Android there could be a constant #ANDROID_ICONDIR="dirPath" because Android Studio provides a nice tool that generates a directory with all the different resolutions of your icon.