From fd76528909df1876d379e1793dbe229aa3d67d6a Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 3 Aug 2008 00:13:51 +0000 Subject: [PATCH] try this auxlib in linux --- src/auxlib.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/auxlib.lua b/src/auxlib.lua index d1f38971..76e7b931 100644 --- a/src/auxlib.lua +++ b/src/auxlib.lua @@ -1,11 +1,11 @@ -- this includes the iup system -require("libiuplua51") --- local iuplua_open = package.loadlib("iuplua51.dll", "iuplua_open"); +local iuplua_open = package.loadlib("iuplua51.dll", "iuplua_open"); +if(iuplua_open == nil) then iuplua_open = package.loadlib("libiuplua51.so", "iuplua_open"); end iuplua_open(); -- this includes the "special controls" of iup (dont change the order though) -require("libiupluacontrols51") --- local iupcontrolslua_open = package.loadlib("iupluacontrols51.dll", "iupcontrolslua_open"); + local iupcontrolslua_open = package.loadlib("iupluacontrols51.dll", "iupcontrolslua_open"); +if(iupcontrolslua_open == nil) then iuplua_open = package.loadlib("iupluacontrols51.so", "iupcontrolslua_open"); end iupcontrolslua_open(); -- callback function to clean up our mess