source: titan/plugins/mc/mc_dateibrowser.h @ 21546

Last change on this file since 21546 was 21546, checked in by nit, 11 years ago

[titan] change ipk to tpk

File size: 1.1 KB
Line 
1#ifndef MC_DATEIBROWSER_H
2#define MC_DATEIBROWSER_H
3
4void screenmc_dateibrowser()
5{
6//      if(status.security == 1)
7//      {
8                int treffer = 0;
9                struct skin* pluginnode = NULL;
10                void (*startplugin)(void);
11                struct skin* plugin = getscreen("plugin");
12                struct skin* child = plugin->child;
13
14                while(child != NULL)
15                {
16                        if(child->del == PLUGINDELMARK)
17                        {
18                                if(ostrcmp(child->name, "File Manager") == 0)
19                                        treffer = 1;
20                        }
21                        child = child->next;
22                }
23
24                if(treffer == 1)
25                {
26                        pluginnode = getplugin("File Manager");
27               
28                        if(pluginnode != NULL)
29                        {
30                                startplugin = dlsym(pluginnode->pluginhandle, "start");
31                                if(startplugin != NULL)
32                                {
33                                        startplugin();
34                                }
35                        }
36                }
37                else
38                        textbox(_("Message"), _("Install File Manager Tpk first !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
39//      }
40//      else
41//              textbox(_("Message"), _("Registration needed, please contact Atemio !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.