Fix biome-specific mappreviews in 7f602037ba for zipped mods, refs #4962.

Add TextureExists to avoid needless redundant hardcoding of the
filenames.
Remove mapBiome.Preview from gamedescription.js, obsolete following
8cde469501.

Differential Revision: https://code.wildfiregames.com/D1583
Accepted By: Vladislav
This was SVN commit r21859.
This commit is contained in:
elexis
2018-08-05 21:50:00 +00:00
parent 2af94c5898
commit f7783fb4bb
8 changed files with 51 additions and 15 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2013 Wildfire Games.
/* Copyright (C) 2018 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -109,7 +109,7 @@ bool CCacheLoader::CanUseArchiveCache(const VfsPath& sourcePath, const VfsPath&
return true;
}
VfsPath CCacheLoader::ArchiveCachePath(const VfsPath& sourcePath)
VfsPath CCacheLoader::ArchiveCachePath(const VfsPath& sourcePath) const
{
return sourcePath.ChangeExtension(sourcePath.Extension().string() + L".cached" + m_FileExtension);
}