Rev 8289 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8289 | Rev 8540 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | /* Copyright (C) 2019-2021 Logaev Maxim (turbocat2001), GPLv3 */ |
|
- | 2 | ||
1 | #include |
3 | #include |
2 | #include |
4 | #include |
3 | #include |
5 | #include |
Line 4... | Line 6... | ||
4 | 6 | ||
Line 41... | Line 43... | ||
41 | kol_struct70 inf; |
43 | kol_struct70 inf; |
Line 42... | Line 44... | ||
42 | 44 | ||
43 | inf.p00 = 1; |
45 | inf.p00 = 1; |
44 | inf.p04 = 0; |
46 | inf.p04 = 0; |
45 | inf.p12 = 2; |
47 | inf.p12 = 2; |
46 | inf.p16 = (unsigned*) malloc(32+inf.p12*560); |
48 | inf.p16 = (unsigned) malloc(32+inf.p12*560); |
47 | inf.p20 = 0; |
49 | inf.p20 = 0; |
Line 48... | Line 50... | ||
48 | inf.p21 = dir; |
50 | inf.p21 = (char*)dir; |
49 | 51 | ||
50 | if(kol_file_70(&inf)) |
52 | if(kol_file_70(&inf)) |
51 | { |
53 | { |
Line 95... | Line 97... | ||
95 | ::"a"(30),"b"(1),"c"(cwd)); |
97 | ::"a"(30),"b"(1),"c"(cwd)); |
96 | } |
98 | } |
Line 97... | Line 99... | ||
97 | 99 | ||
98 | bool rmdir(const char* dir) |
100 | bool rmdir(const char* dir) |
99 | { |
101 | { |
100 | return dir_operations(8, dir); |
102 | return dir_operations(8, (char*)dir); |
Line 101... | Line 103... | ||
101 | } |
103 | } |
102 | 104 | ||
103 | bool mkdir(const char* dir) |
105 | bool mkdir(const char* dir) |
104 | { |
106 | { |