Better mod dialog layout / Less obnoxious button sound

This commit is contained in:
Anuken
2020-08-15 10:12:34 -04:00
parent 97aca84b26
commit 0cc5945331
8 changed files with 18 additions and 36 deletions

View File

@@ -121,7 +121,7 @@ public class AndroidRhinoContext{
}
return loadClass(dex, name);
}catch(IOException | ClassNotFoundException e){
throw new FatalLoadingException(e);
throw new RuntimeException("Failed to define class", e);
}
}
@@ -151,14 +151,6 @@ public class AndroidRhinoContext{
}
}
/** Might be thrown in any Rhino method that loads bytecode if the loading failed. */
public static class FatalLoadingException extends RuntimeException{
FatalLoadingException(Throwable t){
super("Failed to define class", t);
}
}
static class FileAndroidClassLoader extends BaseAndroidClassLoader{
private static int instanceCounter = 0;
private final File dexFile;