Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Library dependencies #124

Open
ColonelThirtyTwo opened this issue Oct 9, 2012 · 0 comments
Open

Library dependencies #124

ColonelThirtyTwo opened this issue Oct 9, 2012 · 0 comments

Comments

@ColonelThirtyTwo
Copy link
Member

Currently, libraries are loaded in whatever order find.FindInLua returns. This can cause issues when one library depends on another to be loaded because it extends on it, etc. The entities library is a good example of this, since the wire, player, and hologram libraries will extend on it and require it to be loaded first, which it is because file.FindInLua sorts alphabetically.

A better system would be to have a function available during loadtime that suspends loading until the specified file is finished loading. This would be really easy with coroutines in Gm13.

daranable pushed a commit to daranable/Starfall-Original that referenced this issue Jan 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant