tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
27 stars 8 forks source link

Allow setting actual root path for FileSystemResourcePack #288

Closed ghost closed 6 years ago

ghost commented 6 years ago

This discussion has reminded me, I'd like to propose an option of explicitly setting a root folder for the FileSystemResourcePack.

For example:

public FileSystemResourcePack(IFileSystem fileSystem, string rootPath)

When resolving asset paths the pack implementation will treat these paths as relative to the given root.

I believe that will give following benefits: