MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / file_copy

Method file_copy

ogsr_engine/xrCore/LocatorAPI.cpp:1130–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130void 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
1152bool CLocatorAPI::path_exist(LPCSTR path)
1153{

Callers

nothing calls this directly

Calls 5

r_openFunction · 0.85
w_openFunction · 0.85
pointerMethod · 0.80
wMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected