Alienhead Posted April 24, 2023 Share Posted April 24, 2023 If your like me, you might not always be distributing your project via an installer. In which case you don't have many options available other than asking the user to manually install OPENAL drivers. Here's a trick you can do to prevent having to bug the user about those damn OPENAL drivers. Download the oalinst.exe from the site, put it in your project folder. Add this snipplet to the top of your Main.lua script. -- OAL drivers stream = FileSystem:ReadFile("openal.installed") if stream == nil then os.execute('start /min "window title" "oalinst.exe" "-SILENT"') -- openal installs FileSystem:CreateFile("openal.installed") else stream:Release() end 3 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.