| 1128 | } |
| 1129 | |
| 1130 | void CLocatorAPI::file_copy(LPCSTR src, LPCSTR dest) |
| 1131 | { |
| 1132 | #if __has_include("..\build_config_overrides\trivial_encryptor_ovr.h") |
| 1133 | FATAL("Mamkin Hacker Detected"); |
| 1134 | #else |
| 1135 | if (exist(src)) |
| 1136 | { |
| 1137 | IReader* S = r_open(src); |
| 1138 | if (S) |
| 1139 | { |
| 1140 | IWriter* D = w_open(dest); |
| 1141 | if (D) |
| 1142 | { |
| 1143 | D->w(S->pointer(), S->length()); |
| 1144 | w_close(D); |
| 1145 | } |
| 1146 | r_close(S); |
| 1147 | } |
| 1148 | } |
| 1149 | #endif |
| 1150 | } |
| 1151 | |
| 1152 | bool CLocatorAPI::path_exist(LPCSTR path) |
| 1153 | { |