Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystem calls in simulator don't work with assets dir #458

Open
danngreen opened this issue Feb 5, 2025 · 0 comments
Open

Filesystem calls in simulator don't work with assets dir #458

danngreen opened this issue Feb 5, 2025 · 0 comments

Comments

@danngreen
Copy link
Member

Using posix/libc functions like fopen() cannot access the assets dir of a plugin since this is a RAM disk loaded from the assets tarball.
It's a nice feature that the simulator simulates the actual filesystem of the assets, we can catch some issues this way.
But the downside is that standard filesystem calls don't work for it.

I think a solution could be to have calls to asset::plugin(pluginInstance, "path/to/file") return a full path to an un-tarred assets directory.

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

No branches or pull requests

1 participant