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

Function IsFileInShipPage

editor/OrphanRemoveDlg.cpp:182–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182bool IsFileInShipPage(char *filename) {
183 mngs_ship_page shippage;
184 int i;
185 int j;
186 int x;
187
188 for (i = 0; i < MAX_SHIPS; i++) {
189 if (Ships[i].used) {
190 mng_AssignShipToShipPage(i, &shippage);
191
192 if (!stricmp(filename, shippage.image_name))
193 return true;
194 if (!stricmp(filename, shippage.dying_image_name))
195 return true;
196 if (!stricmp(filename, shippage.med_image_name))
197 return true;
198 if (!stricmp(filename, shippage.lo_image_name))
199 return true;
200 for (j = 0; j < MAX_PLAYER_WEAPONS; j++) {
201 for (x = 0; x < MAX_WB_GUNPOINTS; x++) {
202 if (!stricmp(filename, shippage.weapon_name[j][x]))
203 return true;
204 }
205 for (x = 0; x < MAX_WB_FIRING_MASKS; x++) {
206 if (!stricmp(filename, shippage.fire_sound_name[j][x]))
207 return true;
208 }
209 if (!stricmp(filename, shippage.firing_sound_name[j]))
210 return true;
211 if (!stricmp(filename, shippage.release_sound_name[j]))
212 return true;
213 if (!stricmp(filename, shippage.spew_powerup_name[j]))
214 return true;
215 }
216 }
217 }
218
219 return false;
220}
221
222bool IsFileInSoundPage(char *filename) {
223 mngs_sound_page soundpage;

Callers 1

IsFileUsedFunction · 0.85

Calls 1

mng_AssignShipToShipPageFunction · 0.85

Tested by

no test coverage detected