gottyduke / SF_PluginTemplate

Plugin template for SFSE plugins. click "Use this template" to generate your project.
GNU General Public License v3.0
38 stars 9 forks source link

Idea: Add an "ASI" Build configuration to the main template #9

Open igromanru opened 9 months ago

igromanru commented 9 months ago

It would be really helpful, if it would be possible just to "build" an ASI from main project.
To differentiate, you could define something like #define BUILD_ASI, if the use switches to the ASI build configuration, then with #ifdef you can load different includes and set different defines.

Also the ASI loader callback's a specific export function called InitializeASI from the plugin dll.

extern "C" __declspec(dllexport) void InitializeASI()
{
}

This way it can be easy differentiate, if your code if called by SFSE or ASI loader.