source: titan/plugins/wins3/wins3.c @ 17097

Last change on this file since 17097 was 17097, checked in by nit, 8 years ago

[titan] add PLUGINVERSION Check

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 "wins3.h"
12
13char pluginname[] = "3 Wins";
14char plugindesc[] = "3 Wins Game";
15char pluginpic[] = "%pluginpath%/wins3/plugin.png";
16
17int pluginaktiv = 0;
18int pluginversion = PLUGINVERSION;
19
20//wird beim laden ausgefuehrt
21void init(void)
22{
23        char* tmpstr = NULL;
24
25        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/wins3/skin.xml", 0, 0);
26        readscreen(tmpstr, 196, 1);
27        free(tmpstr); tmpstr = NULL;
28
29        pluginaktiv = 1;
30        debug(10, "3 Wins Plugin loadet !!!");
31}
32
33//wird beim entladen ausgefuehrt
34void deinit(void)
35{
36        delmarkedscreen(196);
37        pluginaktiv = 0;
38        debug(10, "3 Wins Plugin removed !!!");
39}
40
41//wird in der Pluginverwaltung bzw Menue ausfeguehrt
42void start(void)
43{
44        screenwins3();
45}
Note: See TracBrowser for help on using the repository browser.