there are reasons for things being the way they were (nw)

This commit is contained in:
Vas Crabb 2020-01-31 14:53:46 +11:00
parent a984b33ada
commit 3536bbdd71
40 changed files with 183 additions and 42 deletions

View File

@ -307,7 +307,7 @@ void uml::instruction::configure(opcode_t op, u8 size, condition_t condition)
// parameter // parameter
//------------------------------------------------- //-------------------------------------------------
void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, condition_t condition) void uml::instruction::configure(opcode_t op, u8 size, parameter p0, condition_t condition)
{ {
// fill in the instruction // fill in the instruction
m_opcode = opcode_t(u8(op)); m_opcode = opcode_t(u8(op));
@ -327,7 +327,7 @@ void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, cond
// parameters // parameters
//------------------------------------------------- //-------------------------------------------------
void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, condition_t condition) void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p1, condition_t condition)
{ {
// fill in the instruction // fill in the instruction
m_opcode = opcode_t(u8(op)); m_opcode = opcode_t(u8(op));
@ -348,7 +348,7 @@ void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, cons
// parameters // parameters
//------------------------------------------------- //-------------------------------------------------
void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, const parameter &p2, condition_t condition) void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p1, parameter p2, condition_t condition)
{ {
// fill in the instruction // fill in the instruction
m_opcode = opcode_t(u8(op)); m_opcode = opcode_t(u8(op));
@ -370,7 +370,7 @@ void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, cons
// parameters // parameters
//------------------------------------------------- //-------------------------------------------------
void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, const parameter &p2, const parameter &p3, condition_t condition) void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p1, parameter p2, parameter p3, condition_t condition)
{ {
// fill in the instruction // fill in the instruction
m_opcode = opcode_t(u8(op)); m_opcode = opcode_t(u8(op));

View File

@ -577,10 +577,10 @@ namespace uml
private: private:
// internal configuration // internal configuration
void configure(opcode_t op, u8 size, condition_t cond = COND_ALWAYS); void configure(opcode_t op, u8 size, condition_t cond = COND_ALWAYS);
void configure(opcode_t op, u8 size, const parameter &p0, condition_t cond = COND_ALWAYS); void configure(opcode_t op, u8 size, parameter p0, condition_t cond = COND_ALWAYS);
void configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, condition_t cond = COND_ALWAYS); void configure(opcode_t op, u8 size, parameter p0, parameter p1, condition_t cond = COND_ALWAYS);
void configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, const parameter &p2, condition_t cond = COND_ALWAYS); void configure(opcode_t op, u8 size, parameter p0, parameter p1, parameter p2, condition_t cond = COND_ALWAYS);
void configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, const parameter &p2, const parameter &p3, condition_t cond = COND_ALWAYS); void configure(opcode_t op, u8 size, parameter p0, parameter p1, parameter p2, parameter p3, condition_t cond = COND_ALWAYS);
// opcode validation and simplification // opcode validation and simplification
void validate(); void validate();

View File

@ -1161,6 +1161,15 @@ osd_file::error core_file::open_proxy(core_file &file, ptr &proxy)
} }
/*-------------------------------------------------
closes a file
-------------------------------------------------*/
core_file::~core_file()
{
}
/*------------------------------------------------- /*-------------------------------------------------
load - open a file with the specified load - open a file with the specified
filename, read it into memory, and return a filename, read it into memory, and return a

View File

@ -61,7 +61,7 @@ public:
static osd_file::error open_proxy(core_file &file, ptr &proxy); static osd_file::error open_proxy(core_file &file, ptr &proxy);
// close an open file // close an open file
virtual ~core_file() = default; virtual ~core_file();
// enable/disable streaming file compression via zlib; level is 0 to disable compression, or up to 9 for max compression // enable/disable streaming file compression via zlib; level is 0 to disable compression, or up to 9 for max compression
virtual osd_file::error compress(int level) = 0; virtual osd_file::error compress(int level) = 0;

View File

@ -125,6 +125,15 @@ core_options::entry::entry(std::string &&name, core_options::option_type type, c
} }
//-------------------------------------------------
// entry - destructor
//-------------------------------------------------
core_options::entry::~entry()
{
}
//------------------------------------------------- //-------------------------------------------------
// entry::value // entry::value
//------------------------------------------------- //-------------------------------------------------
@ -327,6 +336,15 @@ core_options::simple_entry::simple_entry(std::vector<std::string> &&names, const
} }
//-------------------------------------------------
// simple_entry - destructor
//-------------------------------------------------
core_options::simple_entry::~simple_entry()
{
}
//------------------------------------------------- //-------------------------------------------------
// simple_entry::value // simple_entry::value
//------------------------------------------------- //-------------------------------------------------
@ -404,6 +422,15 @@ const char *core_options::simple_entry::maximum() const noexcept
// CORE OPTIONS // CORE OPTIONS
//************************************************************************** //**************************************************************************
//-------------------------------------------------
// ~core_options - destructor
//-------------------------------------------------
core_options::~core_options()
{
}
//------------------------------------------------- //-------------------------------------------------
// add_entry - adds an entry // add_entry - adds an entry
//------------------------------------------------- //-------------------------------------------------

View File

@ -111,7 +111,7 @@ public:
entry(entry &&) = delete; entry(entry &&) = delete;
entry& operator=(const entry &) = delete; entry& operator=(const entry &) = delete;
entry& operator=(entry &&) = delete; entry& operator=(entry &&) = delete;
virtual ~entry() = default; virtual ~entry();
// accessors // accessors
const std::vector<std::string> &names() const noexcept { return m_names; } const std::vector<std::string> &names() const noexcept { return m_names; }
@ -152,7 +152,7 @@ public:
core_options(core_options &&) = default; core_options(core_options &&) = default;
core_options& operator=(const core_options &) = delete; core_options& operator=(const core_options &) = delete;
core_options& operator=(core_options &&) = default; core_options& operator=(core_options &&) = default;
virtual ~core_options() = default; virtual ~core_options();
// getters // getters
const std::string &command() const noexcept { return m_command; } const std::string &command() const noexcept { return m_command; }
@ -213,7 +213,7 @@ private:
simple_entry(simple_entry &&) = delete; simple_entry(simple_entry &&) = delete;
simple_entry& operator=(const simple_entry &) = delete; simple_entry& operator=(const simple_entry &) = delete;
simple_entry& operator=(simple_entry &&) = delete; simple_entry& operator=(simple_entry &&) = delete;
~simple_entry() = default; virtual ~simple_entry();
// getters // getters
virtual const char *value() const noexcept override; virtual const char *value() const noexcept override;

View File

@ -1479,4 +1479,9 @@ void archive_file::cache_clear()
m7z_file_cache_clear(); m7z_file_cache_clear();
} }
archive_file::~archive_file()
{
}
} // namespace util } // namespace util

View File

@ -57,7 +57,7 @@ public:
static error open_7z(const std::string &filename, ptr &result); static error open_7z(const std::string &filename, ptr &result);
// close an archive file (may actually be left open due to caching) // close an archive file (may actually be left open due to caching)
virtual ~archive_file() = default; virtual ~archive_file();
// clear out all open files from the cache // clear out all open files from the cache
static void cache_clear(); static void cache_clear();

View File

@ -614,6 +614,16 @@ osd_file::error zippath_directory::open(std::string const &path, ptr &directory)
} }
// -------------------------------------------------
// zippath_directory::~zippath_directory - closes
// a directory
// -------------------------------------------------
zippath_directory::~zippath_directory()
{
}
// ------------------------------------------------- // -------------------------------------------------
// zippath_parent - retrieves the parent directory // zippath_parent - retrieves the parent directory
// ------------------------------------------------- // -------------------------------------------------

View File

@ -34,7 +34,7 @@ public:
static osd_file::error open(std::string const &path, ptr &directory); static osd_file::error open(std::string const &path, ptr &directory);
// closes a directory // closes a directory
virtual ~zippath_directory() = default; virtual ~zippath_directory();
// reads a directory entry // reads a directory entry
virtual osd::directory::entry const *readdir() = 0; virtual osd::directory::entry const *readdir() = 0;

View File

@ -100,7 +100,7 @@ public:
auto kbrst_cb() { return m_kbrst_cb.bind(); } auto kbrst_cb() { return m_kbrst_cb.bind(); }
a1000_kbreset_device &set_delays(const attotime &detect, const attotime &stray, const attotime &output) a1000_kbreset_device &set_delays(attotime detect, attotime stray, attotime output)
{ {
m_detect_time = detect; m_detect_time = detect;
m_stray_time = stray; m_stray_time = stray;

View File

@ -27,11 +27,11 @@ WRITE8_MEMBER(nes_state::nes_vh_sprite_dma_w)
void nes_state::nes_map(address_map &map) void nes_state::nes_map(address_map &map)
{ {
map(0x0000, 0x07ff).ram().mirror(0x1800); /* RAM */ map(0x0000, 0x07ff).ram().mirror(0x1800); // RAM
map(0x2000, 0x3fff).rw(m_ppu, FUNC(ppu2c0x_device::read), FUNC(ppu2c0x_device::write)); /* PPU registers */ map(0x2000, 0x3fff).rw(m_ppu, FUNC(ppu2c0x_device::read), FUNC(ppu2c0x_device::write)); // PPU registers
map(0x4014, 0x4014).w(FUNC(nes_state::nes_vh_sprite_dma_w)); /* stupid address space hole */ map(0x4014, 0x4014).w(FUNC(nes_state::nes_vh_sprite_dma_w)); // stupid address space hole
map(0x4016, 0x4016).rw(FUNC(nes_state::nes_in0_r), FUNC(nes_state::nes_in0_w)); /* IN0 - input port 1 */ map(0x4016, 0x4016).rw(FUNC(nes_state::nes_in0_r), FUNC(nes_state::nes_in0_w)); // IN0 - input port 1
map(0x4017, 0x4017).r(FUNC(nes_state::nes_in1_r)); /* IN1 - input port 2 */ map(0x4017, 0x4017).r(FUNC(nes_state::nes_in1_r)); // IN1 - input port 2
// 0x4100-0x5fff -> LOW HANDLER defined on a pcb base // 0x4100-0x5fff -> LOW HANDLER defined on a pcb base
// 0x6000-0x7fff -> MID HANDLER defined on a pcb base // 0x6000-0x7fff -> MID HANDLER defined on a pcb base
// 0x8000-0xffff -> HIGH HANDLER defined on a pcb base // 0x8000-0xffff -> HIGH HANDLER defined on a pcb base
@ -91,6 +91,7 @@ void nes_state::nes(machine_config &config)
void nes_state::nespal(machine_config &config) void nes_state::nespal(machine_config &config)
{ {
nes(config); nes(config);
/* basic machine hardware */ /* basic machine hardware */
m_maincpu->set_clock(PAL_APU_CLOCK); m_maincpu->set_clock(PAL_APU_CLOCK);
@ -111,6 +112,7 @@ void nes_state::nespal(machine_config &config)
void nes_state::famicom(machine_config &config) void nes_state::famicom(machine_config &config)
{ {
nes(config); nes(config);
NES_CONTROL_PORT(config.replace(), m_ctrl1, fc_control_port1_devices, "joypad"); NES_CONTROL_PORT(config.replace(), m_ctrl1, fc_control_port1_devices, "joypad");
NES_CONTROL_PORT(config.replace(), m_ctrl2, fc_control_port2_devices, "joypad"); NES_CONTROL_PORT(config.replace(), m_ctrl2, fc_control_port2_devices, "joypad");
NES_CONTROL_PORT(config, m_exp, fc_expansion_devices, nullptr); NES_CONTROL_PORT(config, m_exp, fc_expansion_devices, nullptr);
@ -125,6 +127,7 @@ void nes_state::famicom(machine_config &config)
void nes_state::nespalc(machine_config &config) void nes_state::nespalc(machine_config &config)
{ {
nespal(config); nespal(config);
m_maincpu->set_clock(PALC_APU_CLOCK); m_maincpu->set_clock(PALC_APU_CLOCK);
m_maincpu->set_addrmap(AS_PROGRAM, &nes_state::nes_map); m_maincpu->set_addrmap(AS_PROGRAM, &nes_state::nes_map);
@ -144,6 +147,7 @@ void nes_state::nespalc(machine_config &config)
void nes_state::famipalc(machine_config &config) void nes_state::famipalc(machine_config &config)
{ {
nespalc(config); nespalc(config);
NES_CONTROL_PORT(config.replace(), m_ctrl1, fc_control_port1_devices, "joypad"); NES_CONTROL_PORT(config.replace(), m_ctrl1, fc_control_port1_devices, "joypad");
NES_CONTROL_PORT(config.replace(), m_ctrl2, fc_control_port2_devices, "joypad"); NES_CONTROL_PORT(config.replace(), m_ctrl2, fc_control_port2_devices, "joypad");
NES_CONTROL_PORT(config, m_exp, fc_expansion_devices, nullptr); NES_CONTROL_PORT(config, m_exp, fc_expansion_devices, nullptr);
@ -157,6 +161,7 @@ void nes_state::famipalc(machine_config &config)
void nes_state::suborkbd(machine_config &config) void nes_state::suborkbd(machine_config &config)
{ {
famipalc(config); famipalc(config);
/* TODO: emulate the parallel port bus! */ /* TODO: emulate the parallel port bus! */
m_exp->set_default_option("subor_keyboard"); m_exp->set_default_option("subor_keyboard");
m_exp->set_fixed(true); m_exp->set_fixed(true);

View File

@ -52,8 +52,8 @@
class nes_base_state : public driver_device class nes_base_state : public driver_device
{ {
public: public:
nes_base_state(const machine_config &mconfig, device_type type, const char *tag) nes_base_state(const machine_config &mconfig, device_type type, const char *tag) :
: driver_device(mconfig, type, tag), driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"), m_maincpu(*this, "maincpu"),
m_ctrl1(*this, "ctrl1"), m_ctrl1(*this, "ctrl1"),
m_ctrl2(*this, "ctrl2") m_ctrl2(*this, "ctrl2")
@ -71,8 +71,8 @@ public:
class nes_state : public nes_base_state class nes_state : public nes_base_state
{ {
public: public:
nes_state(const machine_config &mconfig, device_type type, const char *tag) nes_state(const machine_config &mconfig, device_type type, const char *tag) :
: nes_base_state(mconfig, type, tag), nes_base_state(mconfig, type, tag),
m_ppu(*this, "ppu"), m_ppu(*this, "ppu"),
m_screen(*this, "screen"), m_screen(*this, "screen"),
m_exp(*this, "exp"), m_exp(*this, "exp"),

View File

@ -91,6 +91,11 @@ cleanup:
} }
consolewin_info::~consolewin_info()
{
}
void consolewin_info::set_cpu(device_t &device) void consolewin_info::set_cpu(device_t &device)
{ {
// exit if this cpu is already selected // exit if this cpu is already selected

View File

@ -19,7 +19,7 @@ class consolewin_info : public disasmbasewin_info
{ {
public: public:
consolewin_info(debugger_windows_interface &debugger); consolewin_info(debugger_windows_interface &debugger);
virtual ~consolewin_info() = default; virtual ~consolewin_info();
void set_cpu(device_t &device); void set_cpu(device_t &device);

View File

@ -48,6 +48,11 @@ debugwin_info::debugwin_info(debugger_windows_interface &debugger, bool is_main_
} }
debugwin_info::~debugwin_info()
{
}
void debugwin_info::destroy() void debugwin_info::destroy()
{ {
for (int curview = 0; curview < MAX_VIEWS; curview++) for (int curview = 0; curview < MAX_VIEWS; curview++)

View File

@ -19,7 +19,7 @@ class debugwin_info : protected debugbase_info
{ {
public: public:
debugwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler); debugwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler);
virtual ~debugwin_info() = default; virtual ~debugwin_info();
bool is_valid() const { return m_wnd != nullptr; } bool is_valid() const { return m_wnd != nullptr; }

View File

@ -49,6 +49,11 @@ disasmbasewin_info::disasmbasewin_info(debugger_windows_interface &debugger, boo
} }
disasmbasewin_info::~disasmbasewin_info()
{
}
bool disasmbasewin_info::handle_key(WPARAM wparam, LPARAM lparam) bool disasmbasewin_info::handle_key(WPARAM wparam, LPARAM lparam)
{ {
if (GetAsyncKeyState(VK_CONTROL) & 0x8000) if (GetAsyncKeyState(VK_CONTROL) & 0x8000)

View File

@ -19,7 +19,7 @@ class disasmbasewin_info : public editwin_info
{ {
public: public:
disasmbasewin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler); disasmbasewin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler);
virtual ~disasmbasewin_info() = default; virtual ~disasmbasewin_info();
virtual bool handle_key(WPARAM wparam, LPARAM lparam) override; virtual bool handle_key(WPARAM wparam, LPARAM lparam) override;

View File

@ -16,6 +16,11 @@ disasmview_info::disasmview_info(debugger_windows_interface &debugger, debugwin_
} }
disasmview_info::~disasmview_info()
{
}
disasm_right_column disasmview_info::right_column() const disasm_right_column disasmview_info::right_column() const
{ {
return view<debug_view_disasm>()->right_column(); return view<debug_view_disasm>()->right_column();

View File

@ -21,7 +21,7 @@ class disasmview_info : public debugview_info
{ {
public: public:
disasmview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent); disasmview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent);
virtual ~disasmview_info() = default; virtual ~disasmview_info();
disasm_right_column right_column() const; disasm_right_column right_column() const;
offs_t selected_address() const; offs_t selected_address() const;
@ -30,4 +30,4 @@ public:
void set_right_column(disasm_right_column contents); void set_right_column(disasm_right_column contents);
}; };
#endif #endif // MAME_DEBUGGER_WIN_DISASMVIEWINFO_H

View File

@ -45,6 +45,11 @@ disasmwin_info::disasmwin_info(debugger_windows_interface &debugger) :
} }
disasmview_info::~disasmwin_info()
{
}
void disasmwin_info::recompute_children() void disasmwin_info::recompute_children()
{ {
// compute a client rect // compute a client rect

View File

@ -19,7 +19,7 @@ class disasmwin_info : public disasmbasewin_info
{ {
public: public:
disasmwin_info(debugger_windows_interface &debugger); disasmwin_info(debugger_windows_interface &debugger);
virtual ~disasmwin_info() = default; virtual ~disasmwin_info();
protected: protected:
virtual void recompute_children() override; virtual void recompute_children() override;

View File

@ -51,6 +51,11 @@ editwin_info::editwin_info(debugger_windows_interface &debugger, bool is_main_co
} }
editwin_info::~editwin_info()
{
}
bool editwin_info::restore_field(HWND wnd) bool editwin_info::restore_field(HWND wnd)
{ {
if (wnd == m_editwnd) if (wnd == m_editwnd)

View File

@ -22,7 +22,7 @@ class editwin_info : public debugwin_info
{ {
public: public:
editwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler); editwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler);
virtual ~editwin_info() = default; virtual ~editwin_info();
virtual bool restore_field(HWND wnd) override; virtual bool restore_field(HWND wnd) override;

View File

@ -18,6 +18,11 @@ logview_info::logview_info(debugger_windows_interface &debugger, debugwin_info &
} }
logview_info::~logview_info()
{
}
void logview_info::clear() void logview_info::clear()
{ {
view<debug_view_log>()->clear(); view<debug_view_log>()->clear();

View File

@ -19,9 +19,9 @@ class logview_info : public debugview_info
{ {
public: public:
logview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent); logview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent);
virtual ~logview_info() = default; virtual ~logview_info();
void clear(); void clear();
}; };
#endif #endif // MAME_DEBUGGER_WIN_LOGVIEWINFO_H

View File

@ -49,6 +49,11 @@ logwin_info::logwin_info(debugger_windows_interface &debugger) :
} }
logwin_info::~logwin_info()
{
}
bool logwin_info::handle_command(WPARAM wparam, LPARAM lparam) bool logwin_info::handle_command(WPARAM wparam, LPARAM lparam)
{ {
if ((HIWORD(wparam) == 0) && (LOWORD(wparam) == ID_CLEAR_LOG)) if ((HIWORD(wparam) == 0) && (LOWORD(wparam) == ID_CLEAR_LOG))

View File

@ -19,7 +19,7 @@ class logwin_info : public debugwin_info
{ {
public: public:
logwin_info(debugger_windows_interface &debugger); logwin_info(debugger_windows_interface &debugger);
virtual ~logwin_info() = default; virtual ~logwin_info();
protected: protected:
virtual bool handle_command(WPARAM wparam, LPARAM lparam) override; virtual bool handle_command(WPARAM wparam, LPARAM lparam) override;

View File

@ -18,6 +18,11 @@ memoryview_info::memoryview_info(debugger_windows_interface &debugger, debugwin_
} }
memoryview_info::~memoryview_info()
{
}
uint8_t memoryview_info::data_format() const uint8_t memoryview_info::data_format() const
{ {
return view<debug_view_memory>()->get_data_format(); return view<debug_view_memory>()->get_data_format();

View File

@ -19,7 +19,7 @@ class memoryview_info : public debugview_info
{ {
public: public:
memoryview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent); memoryview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent);
virtual ~memoryview_info() = default; virtual ~memoryview_info();
uint8_t data_format() const; uint8_t data_format() const;
uint32_t chunks_per_row() const; uint32_t chunks_per_row() const;
@ -33,4 +33,4 @@ public:
void set_physical(bool physical); void set_physical(bool physical);
}; };
#endif #endif // MAME_DEBUGGER_WIN_MEMORYVIEWINFO_H

View File

@ -51,6 +51,11 @@ pointswin_info::pointswin_info(debugger_windows_interface &debugger) :
} }
pointswin_info::~pointswin_info()
{
}
bool pointswin_info::handle_key(WPARAM wparam, LPARAM lparam) bool pointswin_info::handle_key(WPARAM wparam, LPARAM lparam)
{ {
if (GetAsyncKeyState(VK_CONTROL) & 0x8000) if (GetAsyncKeyState(VK_CONTROL) & 0x8000)

View File

@ -19,7 +19,7 @@ class pointswin_info : public debugwin_info
{ {
public: public:
pointswin_info(debugger_windows_interface &debugger); pointswin_info(debugger_windows_interface &debugger);
virtual ~pointswin_info() = default; virtual ~pointswin_info();
virtual bool handle_key(WPARAM wparam, LPARAM lparam) override; virtual bool handle_key(WPARAM wparam, LPARAM lparam) override;

View File

@ -77,7 +77,7 @@ class symbol_manager
public: public:
// construction/destruction // construction/destruction
symbol_manager(const char *argv0); symbol_manager(const char *argv0);
~symbol_manager() = default; ~symbol_manager();
// getters // getters
uintptr_t last_base() const { return m_last_base; } uintptr_t last_base() const { return m_last_base; }
@ -128,7 +128,7 @@ class sampling_profiler
{ {
public: public:
sampling_profiler(uint32_t max_seconds, uint8_t stack_depth); sampling_profiler(uint32_t max_seconds, uint8_t stack_depth);
~sampling_profiler() = default; ~sampling_profiler();
void start(); void start();
void stop(); void stop();
@ -321,6 +321,15 @@ symbol_manager::symbol_manager(const char *argv0)
} }
//-------------------------------------------------
// ~symbol_manager - destructor
//-------------------------------------------------
symbol_manager::~symbol_manager()
{
}
//------------------------------------------------- //-------------------------------------------------
// symbol_for_address - return a symbol by looking // symbol_for_address - return a symbol by looking
// it up either in the cache or by scanning the // it up either in the cache or by scanning the
@ -646,6 +655,15 @@ sampling_profiler::sampling_profiler(uint32_t max_seconds, uint8_t stack_depth =
//------------------------------------------------- //-------------------------------------------------
// sampling_profiler - destructor
//-------------------------------------------------
sampling_profiler::~sampling_profiler()
{
}
////-------------------------------------------------
// start - begin gathering profiling information // start - begin gathering profiling information
//------------------------------------------------- //-------------------------------------------------

View File

@ -40,6 +40,10 @@ bgfx_input_pair::bgfx_input_pair(int index, std::string sampler, std::string tex
} }
} }
bgfx_input_pair::~bgfx_input_pair()
{
}
void bgfx_input_pair::bind(bgfx_effect *effect, const int32_t screen) const void bgfx_input_pair::bind(bgfx_effect *effect, const int32_t screen) const
{ {
if (effect->uniform(m_sampler) == nullptr) if (effect->uniform(m_sampler) == nullptr)

View File

@ -27,7 +27,7 @@ class bgfx_input_pair : public slider_changed_notifier
{ {
public: public:
bgfx_input_pair(int index, std::string sampler, std::string texture, std::vector<std::string> available_textures, std::string selection, chain_manager& chains, uint32_t screen_index); bgfx_input_pair(int index, std::string sampler, std::string texture, std::vector<std::string> available_textures, std::string selection, chain_manager& chains, uint32_t screen_index);
~bgfx_input_pair() = default; virtual ~bgfx_input_pair();
void bind(bgfx_effect *effect, const int32_t screen) const; void bind(bgfx_effect *effect, const int32_t screen) const;
int32_t texture_changed(int32_t index, std::string *str, int32_t newval); int32_t texture_changed(int32_t index, std::string *str, int32_t newval);

View File

@ -42,6 +42,10 @@ osd_netdev::osd_netdev(class device_network_interface *ifdev, int rate)
m_timer->adjust(attotime::from_hz(rate), 0, attotime::from_hz(rate)); m_timer->adjust(attotime::from_hz(rate), 0, attotime::from_hz(rate));
} }
osd_netdev::~osd_netdev()
{
}
void osd_netdev::start() void osd_netdev::start()
{ {
m_timer->enable(true); m_timer->enable(true);

View File

@ -21,7 +21,7 @@ public:
create_netdev func; create_netdev func;
}; };
osd_netdev(class device_network_interface *ifdev, int rate); osd_netdev(class device_network_interface *ifdev, int rate);
virtual ~osd_netdev() = default; virtual ~osd_netdev();
void start(); void start();
void stop(); void stop();

View File

@ -489,6 +489,15 @@ windows_osd_interface::windows_osd_interface(windows_options &options)
} }
//============================================================
// destructor
//============================================================
windows_osd_interface::~windows_osd_interface()
{
}
//============================================================ //============================================================
// video_register // video_register
//============================================================ //============================================================

View File

@ -275,7 +275,7 @@ class windows_osd_interface : public osd_common_t
public: public:
// construction/destruction // construction/destruction
windows_osd_interface(windows_options &options); windows_osd_interface(windows_options &options);
virtual ~windows_osd_interface() = default; virtual ~windows_osd_interface();
// general overridables // general overridables
virtual void init(running_machine &machine) override; virtual void init(running_machine &machine) override;