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 2012-10-16 09:43:15 -04:00
parent 924425074f
commit e770c87084

View file

@ -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())