Disable ignoreAddress on quick hash and inform the user about it.

This commit is contained in:
LunaMoo 2017-05-07 00:12:20 +02:00
parent 3c1f62d691
commit 36d7933c24

View file

@ -94,6 +94,11 @@ bool TextureReplacer::LoadIni() {
options->Get("video", &allowVideo_, false);
options->Get("ignoreAddress", &ignoreAddress_, false);
if (ignoreAddress_ && hash_ == ReplacedTextureHash::QUICK) {
ignoreAddress_ = false;
ERROR_LOG(G3D, "Texture Replacement: ignoreAddress option requires safer hash, use xxh32 or xxh64 instead.");
}
int version = 0;
if (options->Get("version", &version, 0) && version > VERSION) {
ERROR_LOG(G3D, "Unsupported texture replacement version %d, trying anyway", version);