From 748981160a51ee60b1834c0caea7310abcb47cc8 Mon Sep 17 00:00:00 2001 From: okvdai <108829133+okvdai@users.noreply.github.com> Date: Fri, 2 Jun 2023 12:03:54 +0200 Subject: [PATCH] Add comment descriptions to pulse-common-func.gnut --- mod/scripts/vscripts/pulse-common-func.gnut | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/scripts/vscripts/pulse-common-func.gnut b/mod/scripts/vscripts/pulse-common-func.gnut index 95afc27..68992ca 100644 --- a/mod/scripts/vscripts/pulse-common-func.gnut +++ b/mod/scripts/vscripts/pulse-common-func.gnut @@ -1,23 +1,23 @@ globalize_all_functions -void function pulsePrintt (string content) +void function pulsePrintt (string content) //Prints whatever we want printed with given prefix (by standard [PULSE]). { printt(format("%s " + content, pulsePrefix)) } -table function pulseGetCurrentVersionAsTable +table function pulseGetCurrentVersionAsTable //Gets our version numbers from mod.json and puts them in a table for use with pulseFormatAsVersion(). { table result = ["MajorVersion" = GetConVarString("MajorVersion"), "MinorVersion" = GetConVarString("MinorVersion"), "PatchVersion" = GetConVarString("PatchVersion")] return result } -string function pulseFormatAsVersion(table Version) +string function pulseFormatAsVersion(table Version) //Formats given version numbers into one neat string (example: v2.0.0). { return format("v%s.%s.%s", Version["MajorVersion"], Version["MinorVersion"], Version["PatchVersion"]) } -bool function pulseIsUpToDate(string givenURL) +bool function pulseIsUpToDate(string givenURL) //Compares version contained in our mod.json with a version.json contained on a remote GitHub repo (see VersionURL within mod.json). { bool result = false HttpRequest versionreq