MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / TexPackOverlay_UpdateLine2

Function TexPackOverlay_UpdateLine2

src/Menus.c:2790–2805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2788}
2789
2790static void TexPackOverlay_UpdateLine2(struct TexPackOverlay* s) {
2791 static const cc_string https = String_FromConst("https://");
2792 static const cc_string http = String_FromConst("http://");
2793 cc_string url = String_Empty;
2794
2795 if (!s->deny) {
2796 url = s->url;
2797 if (String_CaselessStarts(&url, &https)) {
2798 url = String_UNSAFE_SubstringAt(&url, https.length);
2799 }
2800 if (String_CaselessStarts(&url, &http)) {
2801 url = String_UNSAFE_SubstringAt(&url, http.length);
2802 }
2803 }
2804 TextWidget_Set(&s->lbls[2], &url, &s->textFont);
2805}
2806
2807static void TexPackOverlay_UpdateLine3(struct TexPackOverlay* s) {
2808 cc_string contents; char contentsBuffer[STRING_SIZE];

Callers 1

Calls 3

String_CaselessStartsFunction · 0.85
TextWidget_SetFunction · 0.85

Tested by

no test coverage detected