Last change
on this file since 24035 was
24035,
checked in by nit, 10 years ago
|
[titan] first step for more then one pluginpath
|
File size:
1.1 KB
|
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 | int pluginversion = PLUGINVERSION; |
---|
19 | |
---|
20 | //wird beim laden ausgefuehrt |
---|
21 | void init(void) |
---|
22 | { |
---|
23 | char* tmpstr = NULL; |
---|
24 | |
---|
25 | tmpstr = createpluginpath("/catcatch/skin.xml", 0); |
---|
26 | readscreen(tmpstr, 241, 1); |
---|
27 | free(tmpstr); tmpstr = NULL; |
---|
28 | |
---|
29 | pluginaktiv = 1; |
---|
30 | debug(10, "Cat Catch Plugin loadet !!!"); |
---|
31 | } |
---|
32 | |
---|
33 | //wird beim entladen ausgefuehrt |
---|
34 | void deinit(void) |
---|
35 | { |
---|
36 | delmarkedscreen(241); |
---|
37 | pluginaktiv = 0; |
---|
38 | debug(10, "Cat Catch Plugin removed !!!"); |
---|
39 | } |
---|
40 | |
---|
41 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
42 | void start(void) |
---|
43 | { |
---|
44 | screencatcatch(); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.