MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / shouldPersist

Method shouldPersist

source/base/StarAssets.cpp:648–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648bool Assets::JsonData::shouldPersist() const {
649 return forcePersist || !json.unique();
650}
651
652bool Assets::ImageData::shouldPersist() const {
653 return forcePersist || (!alias && !image.unique());

Callers 2

clearCacheMethod · 0.80
cleanupMethod · 0.80

Calls 1

uniqueMethod · 0.45

Tested by

no test coverage detected