From 2eb62ac0a81da9e2bc44b1a194f9a2bec8ebc1ad Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Mon, 1 Feb 2021 01:32:56 +0100 Subject: [PATCH] Some small corrections --- src/zutil/osal/MultiPlatformBinaryManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/zutil/osal/MultiPlatformBinaryManager.java b/src/zutil/osal/MultiPlatformBinaryManager.java index c19818f..1b3397b 100644 --- a/src/zutil/osal/MultiPlatformBinaryManager.java +++ b/src/zutil/osal/MultiPlatformBinaryManager.java @@ -51,7 +51,7 @@ public class MultiPlatformBinaryManager { /** * * @param root The root directory where all the binaries are located - * @param binary The name of the binary. + * @param binary The name of the binary. (Without a file extension) * @return the path to the binary for the current hw platform */ public static File getPath(File root, String binary) { @@ -83,6 +83,10 @@ public class MultiPlatformBinaryManager { default: arch = System.getProperty("os.arch").toLowerCase(); break; } + switch (OSAbstractionLayer.getInstance().getOSType()) { + case Windows: binary += ".exe"; break; + } + String platform = os + "-" + arch; File platformPath = new File(root, platform); return new File(platformPath, binary);