Rev 6253 | Rev 6271 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6253 | Rev 6258 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | #include "..\lib\mem.h" |
7 | #include "..\lib\mem.h" |
8 | #include "..\lib\io.h" |
8 | #include "..\lib\io.h" |
9 | #include "..\lib\gui.h" |
9 | #include "..\lib\gui.h" |
10 | #include "..\lib\obj\proc_lib.h" |
10 | #include "..\lib\obj\proc_lib.h" |
11 | #include "..\lib\patterns\simple_open_dialog.h" |
11 | #include "..\lib\patterns\simple_open_dialog.h" |
- | 12 | #include "..\lib\patterns\restart_process.h" |
|
12 | #include "..\lib\added_sysdir.c" |
13 | #include "..\lib\added_sysdir.c" |
Line -... | Line 14... | ||
- | 14 | ||
13 | 15 | ||
14 | char default_dir[] = "/rd/1"; |
16 | char default_dir[] = "/rd/1"; |
Line 15... | Line 17... | ||
15 | od_filter filter2 = {"",0}; |
17 | od_filter filter2 = {"",0}; |
Line 35... | Line 37... | ||
35 | #define MANUALLY_BUTTON_TEXT "Choose /kolibrios/ folder..." |
37 | #define MANUALLY_BUTTON_TEXT "Choose /kolibrios/ folder..." |
Line 36... | Line 38... | ||
36 | 38 | ||
37 | 39 | ||
- | 40 | void CheckKosMounted() |
|
38 | void CheckKosMounted() |
41 | { |
39 | { |
42 | while (CheckProcessExists("SEARCHAP")) pause(2); |
40 | if (dir_exists("/kolibrios/")) |
43 | if (dir_exists("/kolibrios/")) |
41 | { |
44 | { |
42 | if (file_exists(APP_PLUS_INI_PATH)) |
45 | if (file_exists(APP_PLUS_INI_PATH)) |
Line 47... | Line 50... | ||
47 | } |
50 | } |
48 | } |
51 | } |
Line 49... | Line 52... | ||
49 | 52 | ||
50 | void RunAutosearch() |
53 | void RunAutosearch() |
51 | { |
- | |
52 | dword searchap_run_id; |
54 | { |
53 | searchap_run_id = io.run("/sys/searchap",0); |
- | |
54 | while (GetProcessSlot(searchap_run_id)) pause(10); |
55 | io.run("/sys/SEARCHAP",0); |
Line 55... | Line 56... | ||
55 | } |
56 | } |
56 | 57 | ||
57 | void main() |
58 | void main() |