From 515d71409c4b65c159ac6c0e815657f3ece56cb2 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:23:03 +1100 Subject: support for an absurd hacky trick used by FD: appending to the frame ID via the directives parameter wtf :sob: --- source/core/StarDirectives.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/core/StarDirectives.cpp') diff --git a/source/core/StarDirectives.cpp b/source/core/StarDirectives.cpp index ea18bc9..b72e8ee 100644 --- a/source/core/StarDirectives.cpp +++ b/source/core/StarDirectives.cpp @@ -156,6 +156,15 @@ void Directives::parse(String&& directives) { } } +StringView Directives::prefix() const { + if (!m_shared) + return ""; + else if (m_shared->empty()) + return m_shared->string; + else + return StringView(m_shared->string).substr(0, m_shared->entries.begin()->begin); +} + String Directives::string() const { if (!m_shared) return ""; -- cgit v1.2.3