summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/cheat.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-03-10 18:21:10 +1100
committer Vas Crabb <vas@vastheman.com>2020-03-10 18:21:10 +1100
commit9c600695f0ed4456270bf5f1676b8fadaed34127 (patch)
tree1e52fb8b786e9bece80b05e2f583bba207f5af7c /src/frontend/mame/cheat.h
parentcc70fe02bacdf8dc17fe75065e387276c8056e5e (diff)
(nw) Cleanup on the way:
* Add doxygen comments for bit manipulation functions * Add an overload of BIT that works like the AArch64 UBFX instruction * Kill off some of the silly concatenating overloads for emu_file::open * Make searchpath acually useful for devices This is a checkpoint - I'm planning to improve ROM loading behaviour at least a little.
Diffstat (limited to 'src/frontend/mame/cheat.h')
-rw-r--r--src/frontend/mame/cheat.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/frontend/mame/cheat.h b/src/frontend/mame/cheat.h
index d05890c7152..b6faaa85e80 100644
--- a/src/frontend/mame/cheat.h
+++ b/src/frontend/mame/cheat.h
@@ -88,7 +88,7 @@ public:
cheat_parameter(
cheat_manager &manager,
symbol_table &symbols,
- char const *filename,
+ std::string const &filename,
util::xml::data_node const &paramnode);
// queries
@@ -153,7 +153,7 @@ public:
cheat_script(
cheat_manager &manager,
symbol_table &symbols,
- char const *filename,
+ std::string const &filename,
util::xml::data_node const &scriptnode);
// getters
@@ -172,7 +172,7 @@ private:
script_entry(
cheat_manager &manager,
symbol_table &symbols,
- char const *filename,
+ std::string const &filename,
util::xml::data_node const &entrynode,
bool isaction);
@@ -189,7 +189,7 @@ private:
output_argument(
cheat_manager &manager,
symbol_table &symbols,
- char const *filename,
+ std::string const &filename,
util::xml::data_node const &argnode);
// getters
@@ -206,7 +206,7 @@ private:
};
// internal helpers
- void validate_format(char const *filename, int line);
+ void validate_format(std::string const &filename, int line);
// internal state
parsed_expression m_condition; // condition under which this is executed
@@ -233,7 +233,7 @@ class cheat_entry
{
public:
// construction/destruction
- cheat_entry(cheat_manager &manager, symbol_table &globaltable, const char *filename, util::xml::data_node const &cheatnode);
+ cheat_entry(cheat_manager &manager, symbol_table &globaltable, std::string const &filename, util::xml::data_node const &cheatnode);
~cheat_entry();
// getters
@@ -319,7 +319,7 @@ public:
// actions
void reload();
- bool save_all(const char *filename);
+ bool save_all(std::string const &filename);
void render_text(mame_ui_manager &mui, render_container &container);
// output helpers
@@ -333,7 +333,7 @@ public:
private:
// internal helpers
void frame_update();
- void load_cheats(char const *filename);
+ void load_cheats(std::string const &filename);
// internal state
running_machine & m_machine; // reference to our machine