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
This commit is contained in:
@@ -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:";
|
||||
|
||||
Reference in New Issue
Block a user