From ff20abf27dd0e367a03e60f71cb369f040b7e5a1 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 5 Nov 2008 23:11:49 +0000 Subject: [PATCH] Fixed parameter reading on Windows. (We are parsing a URL, and even though it represents a file, it's still a URL, so it uses the standard slash and not the microsoft slash.) This will make SDK testing work on Windows. We suck a lot for not fixing this sooner, but - I didn't have Windows set up for development. - It was broken for so long, we deprioritized and then sorta forgot about it. This has been broken for over 5 months, when I last touched this file to make it work on Macs. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5506 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ParameterUtil.as | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/as/com/threerings/util/ParameterUtil.as b/src/as/com/threerings/util/ParameterUtil.as index d6da56737..ea186dcaf 100644 --- a/src/as/com/threerings/util/ParameterUtil.as +++ b/src/as/com/threerings/util/ParameterUtil.as @@ -92,9 +92,7 @@ public class ParameterUtil } // else, let's try loading parameters.xml - // assume only windows uses the wrong slash - var fileSep :String = (-1 != Capabilities.os.indexOf("Windows")) ? "\\" : "/"; - var dex :int = url.lastIndexOf(fileSep); + var dex :int = url.lastIndexOf("/"); var paramUrl :String; if (dex == -1) { paramUrl = "file:";