| 1082 | } |
| 1083 | |
| 1084 | void CLocatorAPI::w_close(IWriter*& S) |
| 1085 | { |
| 1086 | if (S) |
| 1087 | { |
| 1088 | R_ASSERT(S->fName.size()); |
| 1089 | string_path fname; |
| 1090 | strcpy_s(fname, S->fName.c_str()); |
| 1091 | bool bReg = S->valid(); |
| 1092 | xr_delete(S); |
| 1093 | |
| 1094 | if (bReg) |
| 1095 | { |
| 1096 | struct _stat st; |
| 1097 | _stat(fname, &st); |
| 1098 | Register(fname, VFS_STANDARD_FILE, 0, st.st_size, st.st_size, (u32)st.st_mtime); |
| 1099 | } |
| 1100 | } |
| 1101 | } |
| 1102 | |
| 1103 | CLocatorAPI::files_it CLocatorAPI::file_find_it(LPCSTR fname) |
| 1104 | { |
no test coverage detected