Line | |
---|
1 | /*****************************************************/ |
---|
2 | /* this file is part of the tiTan / tiTanNIT Project */ |
---|
3 | /* and allowed only for use with this. */ |
---|
4 | /* */ |
---|
5 | /* copyright by NIT */ |
---|
6 | /*****************************************************/ |
---|
7 | |
---|
8 | #include "../titan/struct.h" |
---|
9 | #include "../titan/debug.h" |
---|
10 | #include "../titan/header.h" |
---|
11 | #include "catcatch.h" |
---|
12 | |
---|
13 | char pluginname[] = "Cat Catch"; |
---|
14 | char plugindesc[] = "Cat Catch"; |
---|
15 | char pluginpic[] = "%pluginpath%/catcatch/plugin.png"; |
---|
16 | |
---|
17 | int pluginaktiv = 0; |
---|
18 | |
---|
19 | //wird beim laden ausgefuehrt |
---|
20 | void init(void) |
---|
21 | { |
---|
22 | char* tmpstr = NULL; |
---|
23 | |
---|
24 | tmpstr = ostrcat(getconfig("pluginpath", NULL), "/catcatch/skin.xml", 0, 0); |
---|
25 | readscreen(tmpstr, 241, 1); |
---|
26 | free(tmpstr); tmpstr = NULL; |
---|
27 | |
---|
28 | pluginaktiv = 1; |
---|
29 | debug(10, "Cat Catch Plugin loadet !!!"); |
---|
30 | } |
---|
31 | |
---|
32 | //wird beim entladen ausgefuehrt |
---|
33 | void deinit(void) |
---|
34 | { |
---|
35 | delmarkedscreen(241); |
---|
36 | pluginaktiv = 0; |
---|
37 | debug(10, "Cat Catch Plugin removed !!!"); |
---|
38 | } |
---|
39 | |
---|
40 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
41 | void start(void) |
---|
42 | { |
---|
43 | screencatcatch(); |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.