X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/3886ef930e3fd54894b8798ab17ef4d3bc0b995a..9d093a68b5f3e5a22e243c92ec2e0bd24b10ea38:/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp b/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp new file mode 100644 index 00000000..042c2055 --- /dev/null +++ b/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp @@ -0,0 +1,29 @@ +#include "stgconfig.h" + +class STGCONFIG_CREATOR +{ +private: + STGCONFIG2 * stgconfig; + +public: + STGCONFIG_CREATOR() + : stgconfig(new STGCONFIG2()) + { + }; + ~STGCONFIG_CREATOR() + { + delete stgconfig; + }; + + STGCONFIG2 * GetPlugin() + { + return stgconfig; + }; +}; + +STGCONFIG_CREATOR stgc; + +BASE_PLUGIN * GetPlugin() +{ +return stgc.GetPlugin(); +}