Jeck - Removed some unused bits of code, added zip support to themes' card overrides. @Jean, please check WResourceManager::dirOK() on Linux.

This needs some impact testing, to be certain it doesn't noticeably slow anything down. In a future version I'd like to memoize checking for zip file existence in each "Res/sets/XXX/" directory once during boot, and in the themed directory whenever switching themes.
This commit is contained in:
wagic.jeck
2009-10-28 04:06:45 +00:00
parent 6279cc894c
commit 3347fd020b
4 changed files with 110 additions and 85 deletions

View File

@@ -273,8 +273,8 @@ bool WCachedTexture::Attempt(string filename, int submode, int & error){
if(submode & TEXTURE_SUB_5551)
format = GU_PSM_5551;
if(!realname.size()){ //realname should not be empty, even if file 404s.
error = CACHE_ERROR_BAD;
if(!realname.size()){
error = CACHE_ERROR_404;
return false;
}