Changed validity_checker to keep a fresh emu_options for validation purposes (#2232)

* Changed validity_checker to keep a fresh emu_options for validation purposes

This seems to solve the performance problems introduced by PR#2221 while keeping with that PR's goals of not using the "runtime" emu_options for purposes of validation.

* Sorry, I can't spell apparently...
This commit is contained in:
npwoods 2017-04-15 16:33:05 -04:00 committed by Olivier Galibert
parent 02ea4fd43c
commit f81389dcfa
2 changed files with 5 additions and 2 deletions

View File

@ -298,8 +298,7 @@ void validity_checker::validate_one(const game_driver &driver)
// wrap in try/except to catch fatalerrors
try
{
emu_options options;
machine_config config(driver, options);
machine_config config(driver, m_blank_options);
m_current_config = &config;
validate_driver();
validate_roms();

View File

@ -14,6 +14,7 @@
#pragma once
#include "drivenum.h"
#include "emuopts.h"
//**************************************************************************
@ -98,6 +99,9 @@ private:
// internal driver list
driver_enumerator m_drivlist;
// blank options for use during validation
emu_options m_blank_options;
// error tracking
int m_errors;
int m_warnings;