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

Method w_close

ogsr_engine/xrCore/LocatorAPI.cpp:1084–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082}
1083
1084void 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
1103CLocatorAPI::files_it CLocatorAPI::file_find_it(LPCSTR fname)
1104{

Callers 10

CloseDumperFunction · 0.80
saveMethod · 0.80
w_close_scriptFunction · 0.80
SaveMethod · 0.80
ExecuteMethod · 0.80
~CDemoRecordMethod · 0.80
create_shaderFunction · 0.80
ScreenshotImplMethod · 0.80
save_toMethod · 0.80
save_asMethod · 0.80

Calls 6

xr_deleteFunction · 0.85
_statClass · 0.85
RegisterClass · 0.85
sizeMethod · 0.45
c_strMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected