MCPcopy Create free account
hub / github.com/NetHack/NetHack / find_display_sym_customization

Function find_display_sym_customization

src/glyphs.c:1195–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193 enum graphics_sets which_set);
1194
1195struct customization_detail *
1196find_display_sym_customization(
1197 const char *customization_name,
1198 const struct symparse *symparse,
1199 enum graphics_sets which_set)
1200{
1201 struct symset_customization *gdc;
1202 struct customization_detail *symdetails;
1203
1204 gdc = &gs.sym_customizations[which_set][custom_symbols];
1205 if ((gdc->custtype == custom_symbols)
1206 && (strcmp(customization_name, gdc->customization_name) == 0)) {
1207 symdetails = gdc->details;
1208 while (symdetails) {
1209 if (symdetails->content.sym.symparse == symparse)
1210 return symdetails;
1211 symdetails = symdetails->next;
1212 }
1213 }
1214 return (struct customization_detail *) 0;
1215}
1216
1217struct customization_detail *
1218find_display_urep_customization(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected