Line | |
---|
1 | #include "../titan/struct.h" |
---|
2 | #include "../titan/debug.h" |
---|
3 | #include "../titan/header.h" |
---|
4 | #include "optimize.h" |
---|
5 | |
---|
6 | char pluginname[] = "Optimize"; |
---|
7 | char plugindesc[] = "Optimize"; |
---|
8 | char pluginpic[] = "%pluginpath%/optimize/plugin.png"; |
---|
9 | |
---|
10 | int pluginaktiv = 0; |
---|
11 | int pluginversion = PLUGINVERSION; |
---|
12 | |
---|
13 | //wird beim laden ausgefuehrt |
---|
14 | void init(void) |
---|
15 | { |
---|
16 | char* tmpstr = NULL; |
---|
17 | |
---|
18 | tmpstr = createpluginpath("/optimize/skin.xml", 0); |
---|
19 | readscreen(tmpstr, 198, 1); |
---|
20 | free(tmpstr); tmpstr = NULL; |
---|
21 | |
---|
22 | pluginaktiv = 1; |
---|
23 | debug(10, "Optimize Plugin loadet !!!"); |
---|
24 | } |
---|
25 | |
---|
26 | //wird beim entladen ausgefuehrt |
---|
27 | void deinit(void) |
---|
28 | { |
---|
29 | delmarkedscreen(198); |
---|
30 | pluginaktiv = 0; |
---|
31 | debug(10, "Optimize Plugin removed !!!"); |
---|
32 | } |
---|
33 | |
---|
34 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
35 | void start(void) |
---|
36 | { |
---|
37 | screenoptimize(); |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.