From 8eb1dca0ac1974f13266bf4645c0cb8913d58d9d Mon Sep 17 00:00:00 2001 From: canni0 Date: Sat, 10 Jan 2009 23:29:25 +0000 Subject: - 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 --- installer/settings/functions.nsh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'installer/settings') 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 -- cgit v1.2.3