mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00

The goals with this change is to make get_default_card_software() a bit more standalone by making it a const method that does not mutate the state of the device_image_interface. This is done by passing in a small structure that encapsulates the minimum of information that get_default_card_software() needs. This also eliminates the need for device_image_interface::open_image_file() I agree with Sarayan that get_default_card_software() is terrible and needs to ultimately go away. This is a small step in that direction. Lastly, I don't care for the name of get_default_card_software_hook (or get_default_card_software() for that matter). If anybody has better ideas, let me know.
20 lines
552 B
C++
20 lines
552 B
C++
// license:BSD-3-Clause
|
|
// copyright-holders:Nathan Woods
|
|
/*********************************************************************
|
|
|
|
hashfile.h
|
|
|
|
Code for parsing hash info (*.hsi) files
|
|
|
|
*********************************************************************/
|
|
|
|
#ifndef __HASHFILE_H__
|
|
#define __HASHFILE_H__
|
|
|
|
|
|
|
|
bool hashfile_extrainfo(device_image_interface &image, std::string &result);
|
|
bool hashfile_extrainfo(const char *hash_path, const game_driver &driver, const util::hash_collection &hashes, std::string &result);
|
|
|
|
#endif /* __HASHFILE_H__ */
|