aboutsummaryrefslogtreecommitdiffstats
path: root/installer/settings
diff options
context:
space:
mode:
authorcanni0 <canni0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-01-10 23:29:25 +0000
committercanni0 <canni0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-01-10 23:29:25 +0000
commit8eb1dca0ac1974f13266bf4645c0cb8913d58d9d (patch)
tree7afcb46b447a458536cb24a21c33a6d02b99ea0b /installer/settings
parentda957735cf8f37e6bda903626e826c4993f37f8a (diff)
downloadusdx-8eb1dca0ac1974f13266bf4645c0cb8913d58d9d.tar.gz
usdx-8eb1dca0ac1974f13266bf4645c0cb8913d58d9d.tar.xz
usdx-8eb1dca0ac1974f13266bf4645c0cb8913d58d9d.zip
- Update: Changed routines for online update check
- Fixed: Added missing Language Strings git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1554 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--installer/settings/functions.nsh24
1 files changed, 24 insertions, 0 deletions
diff --git a/installer/settings/functions.nsh b/installer/settings/functions.nsh
index edaa1e74..bbd4fea2 100644
--- a/installer/settings/functions.nsh
+++ b/installer/settings/functions.nsh
@@ -172,4 +172,28 @@ Function VersionCompare
Pop $2
Pop $1
Exch $0
+FunctionEnd
+
+Function ReadFileLine
+Exch $0 ;file
+Exch
+Exch $1 ;line number
+Push $2
+Push $3
+
+ FileOpen $2 $0 r
+ StrCpy $3 0
+
+Loop:
+ IntOp $3 $3 + 1
+ ClearErrors
+ FileRead $2 $0
+ IfErrors +2
+ StrCmp $3 $1 0 loop
+ FileClose $2
+
+Pop $3
+Pop $2
+Pop $1
+Exch $0
FunctionEnd \ No newline at end of file