From 3da76f075f67c051e644b4dd50a57b69a3968c2e Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 8 Apr 2019 15:44:44 +0200 Subject: [PATCH] Conditional shading --- VirtualComputer/pom.xml | 77 ++++++++++++++----- .../java/sznp/virtualcomputer/PluginMain.java | 2 +- 2 files changed, 57 insertions(+), 22 deletions(-) diff --git a/VirtualComputer/pom.xml b/VirtualComputer/pom.xml index 8dd459e..fc2f807 100644 --- a/VirtualComputer/pom.xml +++ b/VirtualComputer/pom.xml @@ -57,11 +57,16 @@ 6.0 - org.bukkit - craftbukkit - 1.12.2-R0.1-SNAPSHOT - provided - + org.virtualbox + VirtualBox-MSCOM + 6.0 + + + org.bukkit + craftbukkit + 1.12.2-R0.1-SNAPSHOT + provided + net.java.dev.jna @@ -90,26 +95,56 @@ 3.0.0 - + \ No newline at end of file diff --git a/VirtualComputer/src/main/java/sznp/virtualcomputer/PluginMain.java b/VirtualComputer/src/main/java/sznp/virtualcomputer/PluginMain.java index c9898f2..427c400 100644 --- a/VirtualComputer/src/main/java/sznp/virtualcomputer/PluginMain.java +++ b/VirtualComputer/src/main/java/sznp/virtualcomputer/PluginMain.java @@ -67,7 +67,7 @@ public class PluginMain extends JavaPlugin { System.setProperty("java.library.path", vbpath); Utils.addLibraryPath(vbpath); final VirtualBoxManager manager = VirtualBoxManager.createInstance(getDataFolder().getAbsolutePath()); - VBoxLib vbl = LibraryLoader.create(VBoxLib.class).load("vboxjxpcom"); + VBoxLib vbl = LibraryLoader.create(VBoxLib.class).load("vboxjxpcom"); //TODO: Test for MSCOM vbl.RTR3InitExe(0, "", 0); IVirtualBox vbox = manager.getVBox(); listener = new VBoxEventHandler().registerTo(vbox.getEventSource());