<div dir="ltr">I made a small proof-of-concept implementation of this idea, which can be found at <a href="https://bitbucket.org/sherief/physfs-ng-public">https://bitbucket.org/sherief/physfs-ng-public</a> - keep in mind that it is both incomplete and incorrect in some aspects (no per-context error code support for example) but for now it allows you to have multiple contexts, each with their own search path(s) and write path without (hopefully) breaking API backwards compatibility. For my use case there is certainly value in having multiple components have isolated PhysFS contexts inside a single process. Is there wider interest in this feature? If so, it'd be nice to have it added to a future version of PhysFS and maintained going forward - if not, I can just keep a private fork and implement it there.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 2, 2018 at 7:51 PM Sherief Farouk <<a href="mailto:sherief.personal@gmail.com">sherief.personal@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font:400 13px/19.5px sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:transparent">I have multiple components in a process where each has a view to a section of the filesystem, and I'd ideally like to have each of these moved to PhysicsFS for various reasons, with transparent support for compressed archives being somewhere near the top of that list. As of PhysicsFS 3.x there doesn't seem to be a way to have multiple contexts living together inside the same process.</div><div style="font:400 13px/19.5px sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:transparent"><br style="font:400 13px/19.5px sans-serif;overflow:visible;font-size-adjust:none;font-stretch:normal"></div><div style="font:400 13px/19.5px sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:transparent">Am I missing some way to do this (other than having multiple directories under "/" for each component and mapping component #1's "/foo/bar" to "/__component_1/foo/bar" internally? If not, would it be possible to propose and / or implement such functionality for a future version of PhysicsFS?</div></div></blockquote></div>