From: <pa...@us...> - 2008-08-20 04:17:17
|
Revision: 772 http://opde.svn.sourceforge.net/opde/?rev=772&view=rev Author: patryn Date: 2008-08-20 04:17:27 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Some Fixes to creation of resources.cfg. OPDE now installs and runs fine (WOOHOO!), but as long as only one game is selected (D'OH!). I shall fix this soon. Modified Paths: -------------- trunk/installer/opde-win.in Modified: trunk/installer/opde-win.in =================================================================== --- trunk/installer/opde-win.in 2008-08-20 03:45:32 UTC (rev 771) +++ trunk/installer/opde-win.in 2008-08-20 04:17:27 UTC (rev 772) @@ -144,8 +144,11 @@ FunctionEnd Function SetupThief1 - FileWrite $0 "$\r$\n[Thief1]$\r$\nFileSystem=.\scripts\Thief1$\r$\nFileSystem=$Thief1Dir$\r$\n" + FileWrite $0 "$\r$\n[Thief1]$\r$\n" + StrCmp $Thief1Dir "" empty + FileWrite $0 "FileSystem=.\scripts\Thief1$\r$\nFileSystem=$Thief1Dir$\r$\n" + FindFirst $2 $1 "$Thief1Dir\crfs\*.crf" loop: StrCmp $1 "" done @@ -153,13 +156,17 @@ FindNext $2 $1 Goto loop done: - FindClose $2 + FindClose $2 + empty: FunctionEnd Function SetupThief2 - FileWrite $0 "$\r$\n[Thief2]$\r$\nFileSystem=.\scripts\Thief2$\r$\nFileSystem=$Thief2Dir$\r$\n" + FileWrite $0 "$\r$\n[Thief2]$\r$\n" + StrCmp $Thief2Dir "" empty + FileWrite $0 "FileSystem=.\scripts\Thief2$\r$\nFileSystem=$Thief2Dir$\r$\n" + FindFirst $2 $1 "$Thief2Dir\res\*.crf" loop: StrCmp $1 "" done @@ -167,13 +174,17 @@ FindNext $2 $1 Goto loop done: - FindClose $2 + FindClose $2 + empty: FunctionEnd Function SetupShock2 - FileWrite $0 "$\r$\n[Shock2]$\r$\nFileSystem=.\scripts\Shock2$\r$\nFileSystem=$Shock2Dir$\r$\n" + FileWrite $0 "$\r$\n[Shock2]$\r$\n" + StrCmp $Shock2Dir "" empty + FileWrite $0 "FileSystem=.\scripts\Shock2$\r$\nFileSystem=$Shock2Dir$\r$\n" + FindFirst $2 $1 "$Shock2Dir\*.crf" loop: StrCmp $1 "" done @@ -181,7 +192,8 @@ FindNext $2 $1 Goto loop done: - FindClose $2 + FindClose $2 + empty: FunctionEnd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |