]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp
042c20558a4463d9931ccce380a220b4b2015ec7
[stg.git] / projects / stargazer / plugins / configuration / sgconfig-ng / creator.cpp
1 #include "stgconfig.h"
2
3 class STGCONFIG_CREATOR
4 {
5 private:
6     STGCONFIG2 * stgconfig;
7
8 public:
9     STGCONFIG_CREATOR()
10         : stgconfig(new STGCONFIG2())
11         {
12         };
13     ~STGCONFIG_CREATOR()
14         {
15         delete stgconfig;
16         };
17
18     STGCONFIG2 * GetPlugin()
19         {
20         return stgconfig;
21         };
22 };
23
24 STGCONFIG_CREATOR stgc;
25
26 BASE_PLUGIN * GetPlugin()
27 {
28 return stgc.GetPlugin();
29 }