mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
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:
parent
02ea4fd43c
commit
f81389dcfa
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user