aboutsummaryrefslogtreecommitdiffstats
path: root/coreAPI/src
diff options
context:
space:
mode:
Diffstat (limited to 'coreAPI/src')
-rw-r--r--coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java b/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java
index e72aeae..d3db0e4 100644
--- a/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java
+++ b/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java
@@ -166,8 +166,12 @@ class DefaultControllerEnvironment extends ControllerEnvironment {
}
private void scanControllersAt(String path) {
+ File file = new File(path);
+ if (!file.exists()) {
+ return;
+ }
try {
- Plugins plugins = new Plugins(new File(path));
+ Plugins plugins = new Plugins(file);
Class[] envClasses = plugins.getExtends(ControllerEnvironment.class);
for(int i=0;i<envClasses.length;i++){
try {