summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-30 13:59:46 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-30 13:59:46 +0200
commit5b56e2e2864c128366f07aac78d62d6850351ce5 (patch)
tree1f1310fedb22023bdc87e014aea8f894969b2668 /src
parent982abb9aef675a7217a70f2d4563888ca5c3b4f2 (diff)
Release notes broken to smaller pages
Diffstat (limited to 'src')
-rw-r--r--src/gmrequest.c6
-rw-r--r--src/resources.c4
-rw-r--r--src/resources.h2
3 files changed, 12 insertions, 0 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index 3d5a4aef..82c232e1 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -358,6 +358,12 @@ static const iBlock *aboutPageSource_(iRangecc path, iRangecc query) {
358 if (equalCase_Rangecc(path, "version")) { 358 if (equalCase_Rangecc(path, "version")) {
359 return &blobVersion_Resources; 359 return &blobVersion_Resources;
360 } 360 }
361 if (equalCase_Rangecc(path, "version-1.5")) {
362 return &blobVersion_1_5_Resources;
363 }
364 if (equalCase_Rangecc(path, "version-0.13")) {
365 return &blobVersion_0_13_Resources;
366 }
361 if (equalCase_Rangecc(path, "debug")) { 367 if (equalCase_Rangecc(path, "debug")) {
362 return utf8_String(debugInfo_App()); 368 return utf8_String(debugInfo_App());
363 } 369 }
diff --git a/src/resources.c b/src/resources.c
index ae85463a..fa7485ce 100644
--- a/src/resources.c
+++ b/src/resources.c
@@ -33,6 +33,8 @@ iBlock blobAbout_Resources;
33iBlock blobHelp_Resources; 33iBlock blobHelp_Resources;
34iBlock blobLagrange_Resources; 34iBlock blobLagrange_Resources;
35iBlock blobLicense_Resources; 35iBlock blobLicense_Resources;
36iBlock blobVersion_0_13_Resources;
37iBlock blobVersion_1_5_Resources;
36iBlock blobVersion_Resources; 38iBlock blobVersion_Resources;
37iBlock blobArghelp_Resources; 39iBlock blobArghelp_Resources;
38iBlock blobCs_Resources; 40iBlock blobCs_Resources;
@@ -76,6 +78,8 @@ static struct {
76 { &blobVersion_Resources, "about/android-version.gmi" }, 78 { &blobVersion_Resources, "about/android-version.gmi" },
77#else 79#else
78 { &blobHelp_Resources, "about/help.gmi" }, 80 { &blobHelp_Resources, "about/help.gmi" },
81 { &blobVersion_0_13_Resources, "about/version-0.13.gmi" },
82 { &blobVersion_1_5_Resources, "about/version-1.5.gmi" },
79 { &blobVersion_Resources, "about/version.gmi" }, 83 { &blobVersion_Resources, "about/version.gmi" },
80#endif 84#endif
81 { &blobArghelp_Resources, "arg-help.txt" }, 85 { &blobArghelp_Resources, "arg-help.txt" },
diff --git a/src/resources.h b/src/resources.h
index 3852cc3e..e440fda3 100644
--- a/src/resources.h
+++ b/src/resources.h
@@ -35,6 +35,8 @@ extern iBlock blobAbout_Resources;
35extern iBlock blobHelp_Resources; 35extern iBlock blobHelp_Resources;
36extern iBlock blobLagrange_Resources; 36extern iBlock blobLagrange_Resources;
37extern iBlock blobLicense_Resources; 37extern iBlock blobLicense_Resources;
38extern iBlock blobVersion_0_13_Resources;
39extern iBlock blobVersion_1_5_Resources;
38extern iBlock blobVersion_Resources; 40extern iBlock blobVersion_Resources;
39extern iBlock blobArghelp_Resources; 41extern iBlock blobArghelp_Resources;
40extern iBlock blobCs_Resources; 42extern iBlock blobCs_Resources;