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

Function find_display_urep_customization

src/glyphs.c:1217–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1215}
1216
1217struct customization_detail *
1218find_display_urep_customization(
1219 const char *customization_name,
1220 int glyphidx,
1221 enum graphics_sets which_set)
1222{
1223 struct symset_customization *gdc = &gs.sym_customizations[which_set];
1224 struct customization_detail *urepdetails;
1225
1226 if ((gdc->custtype == custom_reps)
1227 || (strcmp(customization_name, gdc->customization_name) == 0)) {
1228 urepdetails = gdc->details;
1229 while (urepdetails) {
1230 if (urepdetails->content.urep.glyphidx == glyphidx)
1231 return urepdetails;
1232 urepdetails = urepdetails->next;
1233 }
1234 }
1235 return (struct customization_detail *) 0;
1236}
1237#endif /* 0 not used yet */
1238
1239#ifdef TEST_GLYPHNAMES

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected