2017-11-08 02:19:51 +00:00
|
|
|
//
|
|
|
|
// ROMMachine.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 07/11/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-11-08 02:19:51 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef ROMMachine_hpp
|
|
|
|
#define ROMMachine_hpp
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <memory>
|
2018-04-24 05:11:31 +00:00
|
|
|
#include <string>
|
2017-11-08 02:19:51 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace ROMMachine {
|
|
|
|
|
2018-01-25 23:28:19 +00:00
|
|
|
typedef std::function<std::vector<std::unique_ptr<std::vector<uint8_t>>>(const std::string &machine, const std::vector<std::string> &names)> ROMFetcher;
|
|
|
|
|
2017-11-08 02:19:51 +00:00
|
|
|
struct Machine {
|
|
|
|
/*!
|
|
|
|
Provides the machine with a way to obtain such ROMs as it needs.
|
|
|
|
*/
|
2018-01-25 23:28:19 +00:00
|
|
|
virtual bool set_rom_fetcher(const ROMFetcher &rom_with_name) { return true; }
|
2017-11-08 02:19:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* ROMMachine_h */
|