blob: 12cde5cf299f653765f6814ca2820635a434cbec (
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
|
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria, Aaron Giles
/***************************************************************************
main.cpp
Controls execution of the core MAME system.
***************************************************************************/
#include "emu.h"
#include "main.h"
#include "emuopts.h"
#include "http.h"
machine_manager::machine_manager(emu_options& options, osd_interface& osd) :
m_osd(osd),
m_options(options),
m_machine(nullptr)
{
}
machine_manager::~machine_manager()
{
}
void machine_manager::start_http_server()
{
m_http = std::make_unique<http_manager>(options().http(), options().http_port(), options().http_root());
}
http_manager *machine_manager::http()
{
return m_http.get();
}
|