diff --git a/src/hooker/KernelController.java b/src/hooker/KernelController.java index b1a1026..2eddab5 100644 --- a/src/hooker/KernelController.java +++ b/src/hooker/KernelController.java @@ -175,15 +175,17 @@ public static boolean is64Bit() { if(is64Bit == null) { - //source: https://stackoverflow.com/questions/1856565/how-do-you-determine-32-or-64-bit-architecture-of-windows-using-java - if (System.getProperty("os.name").contains("Windows")) { - is64Bit = (System.getenv("ProgramFiles(x86)") != null); - } else { - //Linux not supported by KernelController so this is useless right now, but, future proofing I guess... - is64Bit = (System.getProperty("os.arch").contains("64")); + switch(System.getProperty("sun.arch.data.model")) + { + case "32": + is64Bit = false; + break; + case "64": + is64Bit = true; + break; } + System.out.println("64 bit: " + is64Bit); } return is64Bit; - } } diff --git a/src/options/OptionsUI.java b/src/options/OptionsUI.java index dee3c8a..5fa4a72 100644 --- a/src/options/OptionsUI.java +++ b/src/options/OptionsUI.java @@ -278,7 +278,7 @@ private void closeWindow() public void initComponents() { - setSize(720, 480); + setSize(760, 480); setLayout(new BorderLayout(SPACING, SPACING)); setDefaultCloseOperation(DISPOSE_ON_CLOSE);