blob: 41c688b2ab66f34f9963033ab49279b28b634892 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/***************************************************************************
pluginopts.cpp
Plugin options manager.
***************************************************************************/
#ifndef MAME_FRONTEND_PLUGINOPTS_H
#define MAME_FRONTEND_PLUGINOPTS_H
#pragma once
#include <list>
#include <string>
// ======================> plugin_options
class plugin_options
{
public:
struct plugin
{
std::string m_name;
std::string m_description;
std::string m_type;
std::string m_directory;
bool m_start;
};
plugin_options();
// accessors
std::list<plugin> &plugins() { return m_plugins; }
const std::list<plugin> &plugins() const { return m_plugins; }
// methods
void scan_directory(const std::string &path, bool recursive);
bool load_plugin(const std::string &path);
plugin *find(const std::string &name);
// INI functionality
void parse_ini_file(util::core_file &inifile);
std::string output_ini() const;
private:
std::list<plugin> m_plugins;
};
#endif // MAME_FRONTEND_PLUGINOPTS_H
|