mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-05 00:09:57 +01:00
Slightly modified to talk to modified Plugin API in Jutils.
(Will now fail gracefully and silently if there is no controller directory available to search for plugins.)
This commit is contained in:
parent
de25a38b88
commit
b3a1e3aa3c
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue