because on the fly access

master
Marcus Gosselin 2014-11-12 23:22:01 -05:00
parent 6d8292607a
commit c624b3085c
2 changed files with 5 additions and 2 deletions

View File

@ -24,8 +24,6 @@ import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node; import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
import MAndEngine.Engine;
public class Item { public class Item {
// to track when to advance frame // to track when to advance frame
@ -136,6 +134,9 @@ public class Item {
path = file.getAbsolutePath(); path = file.getAbsolutePath();
name = file.getName(); name = file.getName();
if(name.endsWith(".enc")) {
name = Viewer.encryptor.decryptName(name.substring(0, name.length() - 4));
}
} else if (path.equals("\\drives")) { } else if (path.equals("\\drives")) {
name = "Drives"; name = "Drives";

View File

@ -54,6 +54,8 @@ public class Viewer implements BasicApp {
private static Thread populationThread; private static Thread populationThread;
public static Encryptor encryptor = new Encryptor("bcnsfw");
@Override @Override
public Dimension getResolution() { public Dimension getResolution() {
return new Dimension(WIDTH, HEIGHT); return new Dimension(WIDTH, HEIGHT);