summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/validity.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-09 21:14:13 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-09 21:14:13 +0100
commit3414b0166e77c5353373d655e3def0251571722d (patch)
tree9439420ee9813653a4b05946078c2f6958a9d60c /src/emu/validity.h
parent00a496face05336b5209ab006ead2a0b1b758c19 (diff)
tagmap_t to std::unordered_map or std::unordered_set where applicable (nw)
Diffstat (limited to 'src/emu/validity.h')
-rw-r--r--src/emu/validity.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/validity.h b/src/emu/validity.h
index 7581d454241..fa38bb20f93 100644
--- a/src/emu/validity.h
+++ b/src/emu/validity.h
@@ -29,8 +29,8 @@ class machine_config;
class validity_checker : public osd_output
{
// internal map types
- typedef tagmap_t<const game_driver *> game_driver_map;
- typedef tagmap_t<FPTR> int_map;
+ typedef std::unordered_map<std::string,const game_driver *> game_driver_map;
+ typedef std::unordered_map<std::string,FPTR> int_map;
public:
validity_checker(emu_options &options);
@@ -47,10 +47,10 @@ public:
// helpers for devices
void validate_tag(const char *tag);
- int region_length(const char *tag) { return m_region_map.find(tag); }
+ int region_length(const char *tag) { return m_region_map.find(tag)->second; }
// generic registry of already-checked stuff
- bool already_checked(const char *string) { return (m_already_checked.add(string, 1, false) == TMERR_DUPLICATE); }
+ bool already_checked(const char *string) { return m_already_checked.insert(string).second; }
// osd_output interface
@@ -74,7 +74,7 @@ private:
void validate_roms();
void validate_analog_input_field(ioport_field &field);
void validate_dip_settings(ioport_field &field);
- void validate_condition(ioport_condition &condition, device_t &device, int_map &port_map);
+ void validate_condition(ioport_condition &condition, device_t &device, std::unordered_set<std::string> &port_map);
void validate_inputs();
void validate_devices();
@@ -103,7 +103,7 @@ private:
const device_t * m_current_device;
const char * m_current_ioport;
int_map m_region_map;
- tagmap_t<UINT8> m_already_checked;
+ std::unordered_set<std::string> m_already_checked;
};