aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-25 18:22:51 -0300
committerBarichello <artur@barichello.me>2022-01-25 18:22:51 -0300
commitfb68eb976de5bd6637d3679273748187c32352ab (patch)
treead37688129f7ba3c57657039fd0873e7422fd45f /Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut
parent730687c29c73ad8e8222eaa42a2f1eb64d863693 (diff)
downloadNorthstarMods-fb68eb976de5bd6637d3679273748187c32352ab.tar.gz
NorthstarMods-fb68eb976de5bd6637d3679273748187c32352ab.zip
Add "StartsWith" helper function
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut7
1 files changed, 6 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut b/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut
index 9eb673a15..a6044762b 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut
@@ -1582,4 +1582,9 @@ string function JoinStringArray( array<string> strings, string separator )
}
return output;
-} \ No newline at end of file
+}
+
+bool function StartsWith( string target, string startsWith )
+{
+ return target.find( startsWith ) == 0
+}