mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Core - Added emulation options for comm settings
This commit is contained in:
parent
c4c906f509
commit
e14de8c687
@ -160,6 +160,13 @@ const options_entry emu_options::s_option_entries[] =
|
||||
{ OPTION_UPDATEINPAUSE, "0", OPTION_BOOLEAN, "keep calling video updates while in pause" },
|
||||
{ OPTION_DEBUGSCRIPT, NULL, OPTION_STRING, "script for debugger" },
|
||||
|
||||
// comm options
|
||||
{ NULL, NULL, OPTION_HEADER, "CORE COMM OPTIONS" },
|
||||
{ OPTION_COMM_LOCAL_HOST, "0.0.0.0", OPTION_STRING, "local address to bind to" },
|
||||
{ OPTION_COMM_LOCAL_PORT, "15112", OPTION_STRING, "local port to bind to" },
|
||||
{ OPTION_COMM_REMOTE_HOST, "127.0.0.1", OPTION_STRING, "remote address to connect to" },
|
||||
{ OPTION_COMM_REMOTE_PORT, "15112", OPTION_STRING, "remote port to connect to" },
|
||||
|
||||
// misc options
|
||||
{ NULL, NULL, OPTION_HEADER, "CORE MISC OPTIONS" },
|
||||
{ OPTION_DRC, "1", OPTION_BOOLEAN, "enable DRC cpu core if available" },
|
||||
|
@ -174,6 +174,12 @@ enum
|
||||
#define OPTION_UI_FONT "uifont"
|
||||
#define OPTION_RAMSIZE "ramsize"
|
||||
|
||||
// core comm options
|
||||
#define OPTION_COMM_LOCAL_HOST "comm_localhost"
|
||||
#define OPTION_COMM_LOCAL_PORT "comm_localport"
|
||||
#define OPTION_COMM_REMOTE_HOST "comm_remotehost"
|
||||
#define OPTION_COMM_REMOTE_PORT "comm_remoteport"
|
||||
|
||||
#define OPTION_CONFIRM_QUIT "confirm_quit"
|
||||
#define OPTION_UI_MOUSE "ui_mouse"
|
||||
|
||||
@ -343,6 +349,12 @@ public:
|
||||
const char *ui_font() const { return value(OPTION_UI_FONT); }
|
||||
const char *ram_size() const { return value(OPTION_RAMSIZE); }
|
||||
|
||||
// core comm options
|
||||
const char *comm_localhost() const { return value(OPTION_COMM_LOCAL_HOST); }
|
||||
const char *comm_localport() const { return value(OPTION_COMM_LOCAL_PORT); }
|
||||
const char *comm_remotehost() const { return value(OPTION_COMM_REMOTE_HOST); }
|
||||
const char *comm_remoteport() const { return value(OPTION_COMM_REMOTE_PORT); }
|
||||
|
||||
bool confirm_quit() const { return bool_value(OPTION_CONFIRM_QUIT); }
|
||||
bool ui_mouse() const { return bool_value(OPTION_UI_MOUSE); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user