2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Cope with unknown resource name extensions.

(E.g. a mistakenly included Thumbs.db)
This commit is contained in:
Christian Walther
2011-06-29 22:23:55 +02:00
parent 36b7513aa1
commit 69173994e6

View File

@ -101,6 +101,9 @@ void plClientResMgr::ILoadResources(const char* resfile)
// Original Myst5 format only is known to support Targa, // Original Myst5 format only is known to support Targa,
// so default fallback is targa // so default fallback is targa
// TODO - Add plTarga::ReadFromStream() // TODO - Add plTarga::ReadFromStream()
// for now, just skip the unknown resource and put NULL into the map
res_size = in.ReadSwap32();
in.Skip(res_size);
} }
(*this->ClientResources)[res_name] = res_data; (*this->ClientResources)[res_name] = res_data;