Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6999 | leency | 1 | #define MEMSIZE 731935 + 200200 |
2 | #include "..\lib\strings.h" |
||
3 | #include "..\lib\file_system.h" |
||
4 | |||
5 | //file_listing.h must be generated using generate_file_listing.bat |
||
6 | #include "file_listing.h" |
||
7 | |||
8 | :dword makepath(dword basic_path, relative_path) |
||
9 | { |
||
10 | char absolute_path[4096]; |
||
11 | strcpy(#absolute_path, basic_path); |
||
12 | strcat(#absolute_path, relative_path); |
||
13 | return #absolute_path; |
||
14 | } |
||
15 | |||
16 | void main() |
||
17 | { |
||
18 | if (dir_exists("/kolibrios")==false) { |
||
19 | die( |
||
20 | "'/kolibrios/ folder is not mounted!\nPlease run APP+ on desktop.\nYou must use ISO distro.'E"); |
||
21 | } |
||
22 | |||
23 | CreateDir("/tmp0/1/DOS"); |
||
24 | CreateDir("/tmp0/1/DOS/KingsBounty"); |
||
25 | |||
26 | if (EAX!=0) { |
||
27 | die("'/tmp0/1/ is not mounted!\nPlease run TMPDISK to add it.'E"); |
||
28 | } |
||
29 | |||
30 | WriteFile(sizeof(file0), #file0, makepath("/tmp0/1/DOS/", FILE_NAME_0)); |
||
31 | WriteFile(sizeof(file1), #file1, makepath("/tmp0/1/DOS/", FILE_NAME_1)); |
||
32 | WriteFile(sizeof(file2), #file2, makepath("/tmp0/1/DOS/", FILE_NAME_2)); |
||
33 | WriteFile(sizeof(file3), #file3, makepath("/tmp0/1/DOS/", FILE_NAME_3)); |
||
34 | WriteFile(sizeof(file4), #file4, makepath("/tmp0/1/DOS/", FILE_NAME_4)); |
||
35 | WriteFile(sizeof(file5), #file5, makepath("/tmp0/1/DOS/", FILE_NAME_5)); |
||
36 | WriteFile(sizeof(file6), #file6, makepath("/tmp0/1/DOS/", FILE_NAME_6)); |
||
37 | WriteFile(sizeof(file7), #file7, makepath("/tmp0/1/DOS/", FILE_NAME_7)); |
||
38 | WriteFile(sizeof(file8), #file8, makepath("/tmp0/1/DOS/", FILE_NAME_8)); |
||
39 | WriteFile(sizeof(file9), #file9, makepath("/tmp0/1/DOS/", FILE_NAME_9)); |
||
40 | |||
41 | notify("'KingsBounty\nInstalled succesfull.\nEnjoy the game!'tO"); |
||
42 | RunProgram("/sys/@open", "/tmp0/1/DOS/KingsBounty/PLAY.sh"); |
||
43 | |||
44 | ExitProcess(); |
||
45 | } |
||
46 | |||
47 | stop: |