source: titan/titan/recordpath.h @ 40035

Last change on this file since 40035 was 36868, checked in by obi, 8 years ago

fix

File size: 1.9 KB
Line 
1#ifndef RECORDPATH_H
2#define RECORDPATH_H
3
4void screenrecordpath()
5{
6        int rcret = 0;
7        struct skin* recordpath = getscreen("recordpath");
8        struct skin* listbox = getscreennode(recordpath, "listbox");
9        struct skin* moviepath = getscreennode(recordpath, "moviepath");
10        struct skin* timerpath = getscreennode(recordpath, "timerpath");
11        struct skin* recpath = getscreennode(recordpath, "recpath");
12        struct skin* timeshiftpath = getscreennode(recordpath, "timeshiftpath");
13        struct skin* streampath = getscreennode(recordpath, "streampath");
14        char* ret = NULL;
15
16
17//      if(checkbox("UFS910") == 1 || checkbox("UFS922") == 1 || status.expertmodus >= 11)
18                changeinput(moviepath, getconfig("rec_moviepath", NULL));
19
20        changeinput(timerpath, getconfig("rec_timerpath", NULL));
21        changeinput(recpath, getconfig("rec_path", NULL));
22        changeinput(timeshiftpath, getconfig("rec_timeshiftpath", NULL));
23        changeinput(streampath, getconfig("rec_streampath", NULL));
24
25        drawscreen(recordpath, 0, 0);
26        addscreenrc(recordpath, listbox);
27
28        while(1)
29        {
30                rcret = waitrc(recordpath, 0, 0);
31
32                if(rcret == getrcconfigint("rcexit", NULL)) break;
33                if(rcret == getrcconfigint("rcok", NULL))
34                {
35//                      if(checkbox("UFS910") == 1 || checkbox("UFS922") == 1 || status.expertmodus >= 11)
36                                addconfigscreen("rec_moviepath", moviepath);
37                        addconfigscreen("rec_timerpath", timerpath);
38                        addconfigscreen("rec_path", recpath);
39                        addconfigscreen("rec_timeshiftpath", timeshiftpath);
40                        addconfigscreen("rec_streampath", streampath);
41                        break;
42                }
43                if(rcret == getrcconfigint("rcred", NULL))
44                {
45                        if(listbox->select != NULL)
46                        {
47                                clearscreen(recordpath);
48                                ret = screendir(listbox->select->ret, "", NULL, NULL, NULL, NULL, 0, "SELECT", 0, NULL, 0, NULL, 0, 700, 0, 650, 0, 0);
49                                if(ret != NULL)
50                                        changeinput(listbox->select, ret);
51                                free(ret);
52
53                                drawscreen(recordpath, 0, 0);
54                        }
55                }
56        }
57
58        delownerrc(recordpath);
59        clearscreen(recordpath);
60}
61
62#endif
Note: See TracBrowser for help on using the repository browser.