mirror of https://github.com/axmolengine/axmol.git
Issue #9061: Fix issue about compare logic
This commit is contained in:
parent
8652864242
commit
68e5132107
|
@ -158,9 +158,11 @@ void AssetsManagerEx::loadLocalManifest(const std::string& manifestUrl)
|
||||||
{
|
{
|
||||||
// Compare with cached manifest to determine which one to use
|
// Compare with cached manifest to determine which one to use
|
||||||
if (cachedManifest) {
|
if (cachedManifest) {
|
||||||
if (strcmp(_localManifest->getVersion().c_str(), cachedManifest->getVersion().c_str()))
|
if (strcmp(_localManifest->getVersion().c_str(), cachedManifest->getVersion().c_str()) > 0)
|
||||||
{
|
{
|
||||||
|
// Recreate storage, to empty the content
|
||||||
_fileUtils->removeDirectory(_storagePath);
|
_fileUtils->removeDirectory(_storagePath);
|
||||||
|
_fileUtils->createDirectory(_storagePath);
|
||||||
CC_SAFE_RELEASE(cachedManifest);
|
CC_SAFE_RELEASE(cachedManifest);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue