From 8c837a9e50c29e66bdf5bd7ea2fd15b1a7d5d598 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 29 Apr 2019 15:12:34 -0400
Subject: [PATCH] Use separators.

---
 GrafreeD.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/GrafreeD.java b/GrafreeD.java
index 1527f55..44e3600 100644
--- a/GrafreeD.java
+++ b/GrafreeD.java
@@ -595,6 +595,9 @@
     
     public static void main(String argv[])
     {
+                String osArch = System.getProperty("os.arch");
+                System.out.println("os.arch = " + osArch);
+                
         if (argv.length == 0)
         {
             String javaPath = System.getProperty("java.home") + File.separator + "bin" + File.separator + "java";
@@ -626,7 +629,11 @@
                 System.out.println("jarfile = " + jarfile);
                 jarpath = jarpath.substring(1, jarpath.length());
                 System.out.println("jarpath = " + jarpath);
-            command += "native" + File.separator + "windows_amd64";
+                command += "native" + File.separator;
+                if (osArch.equals("amd64"))
+                    command += "windows_amd64";
+                else
+                    command += "windows_i586";
         }
         else
             command += "native" + File.separator + "macosx";

--
Gitblit v1.6.2