MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PPic_CloseDatabase

Function PPic_CloseDatabase

Descent3/PilotPicsAPI.cpp:186–205  ·  view source on GitHub ↗

--------------------------------------------------------- PPic_CloseDatabase Purpose: Closes down the picture database. ---------------------------------------------------------

Source from the content-addressed store, hash-verified

184// Closes down the picture database.
185// ---------------------------------------------------------
186void PPic_CloseDatabase(void) {
187 if (!PilotPic_init)
188 return;
189
190 // close up the database
191 PPic_FreeDatabase();
192
193 // close up files
194 if (PilotPic_database_index_handle) {
195 cfclose(PilotPic_database_index_handle);
196 PilotPic_database_index_handle = NULL;
197 }
198
199 if (PilotPic_database_hog_handle) {
200 cf_CloseLibrary(PilotPic_database_hog_handle);
201 PilotPic_database_hog_handle = 0;
202 }
203
204 PilotPic_init = false;
205}
206
207// ---------------------------------------------------------
208// PPic_QueryPilot

Callers

nothing calls this directly

Calls 3

PPic_FreeDatabaseFunction · 0.85
cfcloseFunction · 0.85
cf_CloseLibraryFunction · 0.85

Tested by

no test coverage detected