aboutsummaryrefslogtreecommitdiff
path: root/deployment/windows/helpers/StrSlash.nsh
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-04-08 19:08:09 +0300
committerGitHub <noreply@github.com>2020-04-08 19:08:09 +0300
commitbe538d427787bfd167489745961a734c4d3abc7f (patch)
tree751b4bc9c9ec8df64d5b1699925fa7183e2403a6 /deployment/windows/helpers/StrSlash.nsh
parent5b59cd2eb28877a15bffcb2455822a06dc2b4aa1 (diff)
parentf4cba0ed43dff99241ed6dd4778f58ebd7726ac6 (diff)
Merge pull request #2799 from jellyfin/windows
Remove old windows job from pipeline
Diffstat (limited to 'deployment/windows/helpers/StrSlash.nsh')
-rw-r--r--deployment/windows/helpers/StrSlash.nsh47
1 files changed, 0 insertions, 47 deletions
diff --git a/deployment/windows/helpers/StrSlash.nsh b/deployment/windows/helpers/StrSlash.nsh
deleted file mode 100644
index b8aa771aa..000000000
--- a/deployment/windows/helpers/StrSlash.nsh
+++ /dev/null
@@ -1,47 +0,0 @@
-; Adapted from: https://nsis.sourceforge.io/Another_String_Replace_(and_Slash/BackSlash_Converter) (2019-08-31)
-
-!macro _StrSlashConstructor out in
- Push "${in}"
- Push "\"
- Call StrSlash
- Pop ${out}
-!macroend
-
-!define StrSlash '!insertmacro "_StrSlashConstructor"'
-
-; Push $filenamestring (e.g. 'c:\this\and\that\filename.htm')
-; Push "\"
-; Call StrSlash
-; Pop $R0
-; ;Now $R0 contains 'c:/this/and/that/filename.htm'
-Function StrSlash
- Exch $R3 ; $R3 = needle ("\" or "/")
- Exch
- Exch $R1 ; $R1 = String to replacement in (haystack)
- Push $R2 ; Replaced haystack
- Push $R4 ; $R4 = not $R3 ("/" or "\")
- Push $R6
- Push $R7 ; Scratch reg
- StrCpy $R2 ""
- StrLen $R6 $R1
- StrCpy $R4 "\"
- StrCmp $R3 "/" loop
- StrCpy $R4 "/"
-loop:
- StrCpy $R7 $R1 1
- StrCpy $R1 $R1 $R6 1
- StrCmp $R7 $R3 found
- StrCpy $R2 "$R2$R7"
- StrCmp $R1 "" done loop
-found:
- StrCpy $R2 "$R2$R4"
- StrCmp $R1 "" done loop
-done:
- StrCpy $R3 $R2
- Pop $R7
- Pop $R6
- Pop $R4
- Pop $R2
- Pop $R1
- Exch $R3
-FunctionEnd