reepblue Posted May 26, 2017 Share Posted May 26, 2017 Recently updated to the 4.4 beta, and saw the massive amounts of additional dlls needed to run the executable. Perhaps move the dlls. so, and executable to a Bin folder and set the working directory to "../". Anyone can do this now with the professional edition by adding this to the main function: FileSystem::SetDir("../"); The issue comes when launching from the editor. Not a major issue, but the file directory would look nicer. Maybe something to consider in LE5. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Crazycarpet Posted May 27, 2017 Share Posted May 27, 2017 This would certainly be nice, however it'd make the need for the project manger to add PATH variables for windows users to the project's bin folder. Simply putting it beside the exe makes it much easier for Windows to find. With Lua you can add search directories to require, etc by modifying package.cpath. When mollifying this ! represents the working directory of the project and ? represents what you type into require. I.E in: !\\Bin\\? when require("test") is ran ! would be the working directory. (Generally the exe's directory.) ? would be "test" 1 Quote 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.