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

make Platform::getAssetPath() / loadAsset() const / thread-safe by removing lazy init #1119

Merged
merged 2 commits into from Sep 24, 2015

Conversation

richardeakin
Copy link
Collaborator

So now the default assets path is searched and added right after Platform is constructed. Platforms where this is wasteful file access, such as android, can override findAndAddDefaultAssetPath() to disable this functionality.

…itializing asset directories right after constructing Platform. findAndAddDefaultAssetPath() is made virtual so subclasses can override this work if it is meaningless on their platform.
richardeakin added a commit that referenced this pull request Sep 24, 2015
make Platform::getAssetPath() / loadAsset() const / thread-safe by removing lazy init
@richardeakin richardeakin merged commit e3c15c8 into cinder:master Sep 24, 2015
@richardeakin richardeakin deleted the platform_getAssetPath_const branch September 24, 2015 22:34
richardeakin added a commit to richardeakin/Cinder that referenced this pull request Sep 28, 2015
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

Successfully merging this pull request may close these issues.

None yet

1 participant