Only check the registry on Vinders.

This commit is contained in:
Michael Bayne
2004-07-31 03:55:16 +00:00
parent fc5585dbca
commit aba5853e4a
@@ -1,5 +1,5 @@
//
// $Id: Getdown.java,v 1.30 2004/07/31 03:05:12 mdb Exp $
// $Id: Getdown.java,v 1.31 2004/07/31 03:55:16 mdb Exp $
package com.threerings.getdown.launcher;
@@ -37,6 +37,7 @@ import ca.beq.util.win32.registry.RootKey;
import com.samskivert.swing.util.SwingUtil;
import com.samskivert.text.MessageUtil;
import com.samskivert.util.RunAnywhere;
import com.samskivert.util.StringUtil;
import com.threerings.getdown.Log;
@@ -170,6 +171,7 @@ public class Getdown extends Thread
}
// look in the Vinders registry
if (RunAnywhere.isWindows()) {
try {
String host = null, port = null;
boolean enabled = false;
@@ -203,6 +205,7 @@ public class Getdown extends Thread
Log.info("Failed to find proxy settings in Windows registry " +
"[error=" + t + "].");
}
}
// otherwise look for and read our proxy.txt file
File pfile = _app.getLocalPath("proxy.txt");