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

Implement resource location based on Paths vs mobile #54

Closed
ivanperez-keera opened this issue Nov 29, 2017 · 1 comment
Closed

Implement resource location based on Paths vs mobile #54

ivanperez-keera opened this issue Nov 29, 2017 · 1 comment
Assignees
Milestone

Comments

@ivanperez-keera
Copy link
Owner

The Paths mechanism provided in cabal for normal packages does not currently work on mobile. It's been disabled for the whole game in the feature-sage branch.

There should be a way around this. For resources, one could have a resource "Locatable" instance in the package that implements the right approach during compilation, and is only expressed with type constraints in libraries.

@ivanperez-keera
Copy link
Owner Author

It might also be possible to just provide a Paths module with the same interface as Paths_package, which exports the latter on PC/Mac and implements the right substitutions in iOS/Android.

SDL has its own mechanism, which may also get in the way.

@ivanperez-keera ivanperez-keera added this to the Release 0.9 milestone Nov 29, 2017
ivanperez-keera added a commit that referenced this issue Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant