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

Function IsFileInTexturePage

editor/OrphanRemoveDlg.cpp:237–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237bool IsFileInTexturePage(char *filename) {
238 mngs_texture_page texpage;
239 int i;
240
241 for (i = 0; i < MAX_TEXTURES; i++) {
242 if (GameTextures[i].used) {
243 mng_AssignTextureToTexPage(i, &texpage);
244
245 if (!stricmp(filename, texpage.bitmap_name))
246 return true;
247
248 if (!stricmp(filename, texpage.destroy_name))
249 return true;
250
251 if (!stricmp(filename, texpage.sound_name))
252 return true;
253 }
254 }
255 return false;
256}
257
258bool IsFileInWeaponPage(char *filename) {
259 mngs_weapon_page weappage;

Callers 1

IsFileUsedFunction · 0.85

Calls 1

Tested by

no test coverage detected