Do not save last set when running in good_times debug mode

This commit is contained in:
James Brown 2003-08-20 11:40:03 +00:00
parent 342f73f286
commit b6f2dc3b1c

View File

@ -61,6 +61,11 @@ const char *Registry::get(const char *key) const {
}
void Registry::set(const char *key, const char *val) {
// Hack: Don't save these, so we can run in good_times mode
// without new games being bogus.
if (strstr(key, "GrimLastSet") || strstr(key, "GrimMannyState"))
return;
settings_[key] = val;
dirty_ = true;
}