From: <aki...@us...> - 2006-12-12 03:39:24
|
Revision: 1014 http://svn.sourceforge.net/gridarta/?rev=1014&view=rev Author: akirschbaum Date: 2006-12-10 07:28:08 -0800 (Sun, 10 Dec 2006) Log Message: ----------- Make WorldMaker script more robust. Modified Paths: -------------- trunk/crossfire/ChangeLog trunk/crossfire/resource/conf/scripts.xml Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2006-12-10 15:16:01 UTC (rev 1013) +++ trunk/crossfire/ChangeLog 2006-12-10 15:28:08 UTC (rev 1014) @@ -1,3 +1,9 @@ +2006-12-10 Andreas Kirschbaum + + * Make WorldMaker script more robust: + - create PictureDirectory if it does not exist + - do not require a trailing / for PictureDirectory + 2006-12-07 Andreas Kirschbaum * Make mouse position display work again. Modified: trunk/crossfire/resource/conf/scripts.xml =================================================================== --- trunk/crossfire/resource/conf/scripts.xml 2006-12-10 15:16:01 UTC (rev 1013) +++ trunk/crossfire/resource/conf/scripts.xml 2006-12-10 15:28:08 UTC (rev 1014) @@ -69,6 +69,11 @@ Location = Location + File.separator; } + if (!PictureDirectory.endsWith(File.separator)) { + PictureDirectory = PictureDirectory + File.separator; + } + new File(Location + PictureDirectory).mkdirs(); + HashSet mapList = new HashSet(); boolean firstRun = false; if (fileExists(Location + PictureDirectory + WorldPicture + ".ppm")) { @@ -179,7 +184,7 @@ <name>PictureDirectory</name> <description>The subdirectory where to put pictures</description> <type>java.lang.String</type> - <value>images/</value> + <value>images</value> </parameter> <parameter> <name>WorldPicture</name> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |