Skip to content

Added OS X ChangeMonitor support; fixed memory leak in Platform::GetFiles.#16

Open
Bo98 wants to merge 5 commits into
garrynewman:masterfrom
Bo98:osx-changemonitor
Open

Added OS X ChangeMonitor support; fixed memory leak in Platform::GetFiles.#16
Bo98 wants to merge 5 commits into
garrynewman:masterfrom
Bo98:osx-changemonitor

Conversation

@Bo98
Copy link
Copy Markdown
Contributor

@Bo98 Bo98 commented Apr 16, 2015

No description provided.

@whisperity
Copy link
Copy Markdown

I am astonished by the fact that these filesystem event things are heartless b**es (whisperity/SharpGMad@d1b29d7) in cross-platform.

@Bo98
Copy link
Copy Markdown
Contributor Author

Bo98 commented Apr 18, 2015

Yup, and I changed it again because I just realised GMod's autorefresh reads the whole of the garrysmod folder (including server downloads) which got me past the system-wide file descriptor limit.

It does require linking CoreServices now but based on the Source SDK (https://github.com/ValveSoftware/source-sdk-2013/blob/56accfdb9c4abd32ae1dc26b2e4cc87898cf4dc1/mp/src/tier1/fileio.cpp#L15), GMod should already be doing that. Hopefully it doesn't throw off others using Bootil though. I'll probably add a #define before it's merged into the repo once I know it works in GMod. I'll also squash the commits then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants