mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-05 06:25:47 +00: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
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue