Rev 7000 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7000 | Rev 7227 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | return #absolute_path; |
15 | return #absolute_path; |
16 | } |
16 | } |
Line 17... | Line 17... | ||
17 | 17 | ||
18 | void main() |
18 | void main() |
19 | { |
19 | { |
- | 20 | if (dir_exists("/kolibrios")==false) |
|
20 | if (dir_exists("/kolibrios")==false) { |
21 | die("'/kolibrios/ folder is not mounted! |
21 | die( |
22 | Please run APP+ on desktop. |
22 | "'/kolibrios/ folder is not mounted!\nPlease run APP+ on desktop.\nYou must use ISO distro.'E"); |
- | |
Line 23... | Line 23... | ||
23 | } |
23 | You must use ISO distro.'E"); |
24 | 24 | ||
Line 25... | Line 25... | ||
25 | CreateDir("/tmp0/1/DOS"); |
25 | CreateDir("/tmp0/1/DOS"); |
26 | CreateDir(sprintf(#param, "/tmp0/1/DOS/%s", #app_name)); |
26 | CreateDir(sprintf(#param, "/tmp0/1/DOS/%s", #app_name)); |
27 | 27 | ||
Line 28... | Line 28... | ||
28 | if (EAX!=0) { |
28 | if (EAX!=0) { |
29 | die("'/tmp0/1/ is not mounted!\nPlease run TMPDISK to add it.'E"); |
- | |
30 | } |
- | |
31 | - | ||
32 | WriteFile(sizeof(file0), #file0, makepath("/tmp0/1/DOS/", FILE_NAME_0)); |
- | |
33 | WriteFile(sizeof(file1), #file1, makepath("/tmp0/1/DOS/", FILE_NAME_1)); |
- | |
34 | #ifdef FILE_NAME_2 |
- | |
35 | WriteFile(sizeof(file2), #file2, makepath("/tmp0/1/DOS/", FILE_NAME_2)); |
- | |
36 | #endif |
- | |
37 | #ifdef FILE_NAME_3 |
- | |
38 | WriteFile(sizeof(file3), #file3, makepath("/tmp0/1/DOS/", FILE_NAME_3)); |
- | |
39 | #endif |
- | |
40 | #ifdef FILE_NAME_4 |
- | |
41 | WriteFile(sizeof(file4), #file4, makepath("/tmp0/1/DOS/", FILE_NAME_4)); |
- | |
42 | #endif |
- | |
43 | #ifdef FILE_NAME_5 |
- | |
44 | WriteFile(sizeof(file5), #file5, makepath("/tmp0/1/DOS/", FILE_NAME_5)); |
- | |
45 | #endif |
- | |
46 | #ifdef FILE_NAME_6 |
- | |
47 | WriteFile(sizeof(file6), #file6, makepath("/tmp0/1/DOS/", FILE_NAME_6)); |
- | |
48 | #endif |
- | |
49 | #ifdef FILE_NAME_7 |
- | |
50 | WriteFile(sizeof(file7), #file7, makepath("/tmp0/1/DOS/", FILE_NAME_7)); |
- | |
51 | #endif |
- | |
52 | #ifdef FILE_NAME_8 |
- | |
53 | WriteFile(sizeof(file8), #file8, makepath("/tmp0/1/DOS/", FILE_NAME_8)); |
- | |
Line 54... | Line 29... | ||
54 | #endif |
29 | die("'/tmp0/1/ is not mounted!\nPlease run TMPDISK to add it.'E"); |
55 | #ifdef FILE_NAME_9 |
30 | } |
Line 56... | Line 31... | ||
56 | WriteFile(sizeof(file9), #file9, makepath("/tmp0/1/DOS/", FILE_NAME_9)); |
31 |