Jump to content

A Bin Folder


reepblue
 Share

Recommended Posts

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.

  • Upvote 1

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

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"

  • Upvote 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...