Replace PhysFS with actors #27
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A PhysFS style actor would have a team of actors. Each actor would represent a mountpoint. A zip reader actor would mount a zip folder; and then, the PhysFS actor would request a file from that one; etc. The physfs actor, when presented with a file request, could query each source in parallel. It could even mount websites.
To be more specific: the physfs actor would manage a fleet of actors, each one a particular mountpoint. There would be a zip reader, fd reader, an http reader, etc. an http reader mounted to "http://www.assets.com/mario" would look for that address + "luigi.png", etc. Then the physfs actor, when queried for a file, would ask each of its fleet if it has it; and return the first one.