Don't use File to separate the last element of the path. It's a URL, they're always separated by '/'

This commit is contained in:
Christian committed 2012-10-16 09:46:08 -04:00
1 parent 5c96afec70
commit 3b9972af39
1 file changed
+1 -2
@@ -85,8 +85,7 @@ public class RelaunchLibraryManager
{
boolean download = false;
String libName = lib.getLibraries()[i];
File tmp = new File(libName);
String targFileName = tmp.getName();
String targFileName = libName.lastIndexOf('/')>=0 ? libName.substring(libName.lastIndexOf('/')) : libName;
String checksum = lib.getHashes()[i];
File libFile = new File(libDir, targFileName);
if (!libFile.exists())