Addon informations
- K4sh
- Topic Author
Less
More
Is it possible in the addon tab to show a different name than the file name used as the addon ?
Actually, I made an addon which file name is LittleNightmaresUI.addon and it shows LittleNightmaresUI in the addon tab which is not so self explained.
Is it also possible to set some informations like addon version, author ... ?
Actually, I made an addon which file name is LittleNightmaresUI.addon and it shows LittleNightmaresUI in the addon tab which is not so self explained.
Is it also possible to set some informations like addon version, author ... ?
Last edit: 2 weeks 3 days ago by K4sh.
Please Log in or Create an account to join the conversation.
- crosire
Less
More
Yes, you can set all the metadata via a Win32 version resource embedded in the DLL.
Alternatively can also simply export a string symbol called "NAME" with the desired add-on name from the add-on module. Same can also be done for the description with a symbol called "DESCRIPTION".
Alternatively can also simply export a string symbol called "NAME" with the desired add-on name from the add-on module. Same can also be done for the description with a symbol called "DESCRIPTION".
extern "C" __declspec(dllexport) const char *NAME = "My Add-on Name";
Last edit: 2 weeks 1 day ago by crosire.
Please Log in or Create an account to join the conversation.
- K4sh
- Topic Author
Less
More
A bit late but thank you. It works like a charm with the extern syntax.
Are there any other information that can be added (like author ...) ?
Are there any other information that can be added (like author ...) ?
Last edit: 1 week 12 hours ago by K4sh.
Please Log in or Create an account to join the conversation.
- crosire
Less
More
1 week 10 hours ago - 1 week 6 hours ago #4
by crosire
Replied by crosire on topic Addon informations
Author is only sourced from the version resource in the DLL ("CompanyName") if present at the moment (
learn.microsoft.com/en-us/windows/win32/...versioninfo-resource
). The "NAME"/"DESCRIPTION" thing is more of a hack to get off the ground quicker.
Last edit: 1 week 6 hours ago by crosire.
Please Log in or Create an account to join the conversation.
- K4sh
- Topic Author
Less
More