summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cheat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cheat.h')
-rw-r--r--src/emu/cheat.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/emu/cheat.h b/src/emu/cheat.h
index 9e80b6c6bb1..816781a461d 100644
--- a/src/emu/cheat.h
+++ b/src/emu/cheat.h
@@ -56,7 +56,7 @@ public:
operator const UINT64 &() const { return m_value; }
// format the number according to its format
- const char *format(astring &str) const;
+ const char *format(std::string &str) const;
private:
// internal state
@@ -109,7 +109,7 @@ private:
private:
// internal state
item * m_next; // next item in list
- astring m_text; // name of the item
+ std::string m_text; // name of the item
number_and_format m_value; // value of the item
};
@@ -118,7 +118,7 @@ private:
number_and_format m_maxval; // maximum value
number_and_format m_stepval; // step value
UINT64 m_value; // live value of the parameter
- astring m_curtext; // holding for a value string
+ std::string m_curtext; // holding for a value string
simple_list<item> m_itemlist; // list of items
};
@@ -190,7 +190,7 @@ private:
script_entry * m_next; // link to next entry
parsed_expression m_condition; // condition under which this is executed
parsed_expression m_expression; // expression to execute
- astring m_format; // string format to print
+ std::string m_format; // string format to print
simple_list<output_argument> m_arglist; // list of arguments
INT8 m_line; // which line to print on
UINT8 m_justify; // justification when printing
@@ -252,7 +252,7 @@ public:
void save(emu_file &cheatfile) const;
// UI helpers
- void menu_text(astring &description, astring &state, UINT32 &flags);
+ void menu_text(std::string &description, std::string &state, UINT32 &flags);
// per-frame update
void frame_update() { if (m_state == SCRIPT_STATE_RUN) execute_run_script(); }
@@ -265,8 +265,8 @@ private:
// internal state
cheat_manager & m_manager; // reference to our manager
cheat_entry * m_next; // next cheat entry
- astring m_description; // string description/menu title
- astring m_comment; // comment data
+ std::string m_description; // string description/menu title
+ std::string m_comment; // comment data
auto_pointer<cheat_parameter> m_parameter; // parameter
auto_pointer<cheat_script> m_on_script; // script to run when turning on
auto_pointer<cheat_script> m_off_script; // script to run when turning off
@@ -305,10 +305,10 @@ public:
void render_text(render_container &container);
// output helpers
- astring &get_output_astring(int row, int justify);
+ std::string &get_output_astring(int row, int justify);
// global helpers
- static const char *quote_expression(astring &str, const parsed_expression &expression);
+ static const char *quote_expression(std::string &str, const parsed_expression &expression);
static UINT64 execute_frombcd(symbol_table &table, void *ref, int params, const UINT64 *param);
static UINT64 execute_tobcd(symbol_table &table, void *ref, int params, const UINT64 *param);
@@ -321,7 +321,7 @@ private:
running_machine & m_machine; // reference to our machine
simple_list<cheat_entry> m_cheatlist; // cheat list
UINT64 m_framecount; // frame count
- astring m_output[UI_TARGET_FONT_ROWS*2]; // array of output strings
+ std::string m_output[UI_TARGET_FONT_ROWS * 2]; // array of output strings
UINT8 m_justify[UI_TARGET_FONT_ROWS*2]; // justification for each string
UINT8 m_numlines; // number of lines available for output
INT8 m_lastline; // last line used for output