summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-21 21:04:42 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-21 21:06:05 +0200
commit593e9b91591a9b98f6f46b5db046fe56f719ef24 (patch)
tree02561ea8465c0fb92d822f7f34c057a207c2cc8f /Private/Source
parentda3e277c4685f64112ed0e7d7715e11a9f684eff (diff)
MHR-5: Add icon for settings app alongside Applications folder, register **mup** and **param** schemes on the kernel.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/URL.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Private/Source/URL.cxx b/Private/Source/URL.cxx
index 090c7c66..4983a34c 100644
--- a/Private/Source/URL.cxx
+++ b/Private/Source/URL.cxx
@@ -15,12 +15,15 @@ URL::URL(StringView &strUrl) : fUrlView(strUrl, false) {}
URL::~URL() = default;
+/// @brief internal and reserved protocols by kernel.
constexpr const char *kURLProtocols[] = {
"file", // Filesystem protocol
+ "mup", // Mahrouss update protocol
+ "param", // Mahrouss parameter protocol.
};
constexpr const int kUrlOutSz = 1; //! such as: ://
-constexpr const int kProtosCount = 4;
+constexpr const int kProtosCount = 3;
constexpr const int kRangeSz = 4096;
ErrorOr<StringView> url_extract_location(const char *url) {