From a25f5464170b5e1714d64748ecf2471943e1d4cc Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Sun, 16 Dec 2012 23:22:53 +0200 Subject: [PATCH] Remove more old crapola --- include/core/settings.hpp | 2 - include/library/commands.hpp | 2 +- include/library/settings-cmd-bridge.hpp | 34 -- manual.lyx | 401 ++----------------- manual.txt | 491 ++++++++---------------- src/core/keymapper.cpp | 122 ------ src/core/memorymanip.cpp | 149 ------- src/core/misc.cpp | 1 - src/core/moviedata.cpp | 54 --- src/core/settings.cpp | 3 - src/library/commands.cpp | 117 ------ src/library/settings-cmd-bridge.cpp | 147 ------- src/lua/bind.cpp | 46 +++ src/platform/wxwidgets/main.cpp | 102 ++++- 14 files changed, 325 insertions(+), 1346 deletions(-) delete mode 100644 include/library/settings-cmd-bridge.hpp delete mode 100644 src/library/settings-cmd-bridge.cpp create mode 100644 src/lua/bind.cpp diff --git a/include/core/settings.hpp b/include/core/settings.hpp index 59dbce39..952bb32b 100644 --- a/include/core/settings.hpp +++ b/include/core/settings.hpp @@ -2,9 +2,7 @@ #define _settings__hpp__included__ #include "library/settings.hpp" -#include "library/settings-cmd-bridge.hpp" extern setting_group lsnes_set; -extern settings_command_bridge cmd_bridge; #endif diff --git a/include/library/commands.hpp b/include/library/commands.hpp index 705016fa..0122def9 100644 --- a/include/library/commands.hpp +++ b/include/library/commands.hpp @@ -69,7 +69,7 @@ private: mutex_class int_mutex; std::ostream* output; void (*oom_panic_routine)(); - command* builtin[4]; + command* builtin[1]; }; /** diff --git a/include/library/settings-cmd-bridge.hpp b/include/library/settings-cmd-bridge.hpp deleted file mode 100644 index d887c29e..00000000 --- a/include/library/settings-cmd-bridge.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef _library__settings_cmd_bridge__hpp__included__ -#define _library__settings_cmd_bridge__hpp__included__ - -#include "commands.hpp" -#include "settings.hpp" - -/** - * Bridge between command group and settings group. - */ -class settings_command_bridge -{ -public: -/** - * Create a bridge. - */ - settings_command_bridge(setting_group& sgroup, command_group& cgroup, const std::string& set_cmd, - const std::string& unset_cmd, const std::string& get_cmd, const std::string& show_cmd); -/** - * Destroy a bridge. - */ - ~settings_command_bridge() throw(); -/** - * Set output to use. - */ - void set_output(std::ostream& out); -private: - command* c1; - command* c2; - command* c3; - command* c4; - std::ostream* output; -}; - -#endif diff --git a/manual.lyx b/manual.lyx index de120dcd..27014350 100644 --- a/manual.lyx +++ b/manual.lyx @@ -496,223 +496,6 @@ If command starts with '+' (after possible '*'), the command is executed Commands without '+' execute only on negative edge (release). \end_layout -\begin_layout Subsection -Settings: -\end_layout - -\begin_layout Standard -Settings control various aspects of emulator behaviour. -\end_layout - -\begin_layout Subsubsection -set-setting -\end_layout - -\begin_layout Standard -Sets setting to value (may be empty). -\end_layout - -\begin_layout Subsubsection -unset-setting -\end_layout - -\begin_layout Standard -Try to unset setting (not all settings can be unset). -\end_layout - -\begin_layout Subsubsection -get-setting -\end_layout - -\begin_layout Standard -Read value of setting -\end_layout - -\begin_layout Subsubsection -show-settings -\end_layout - -\begin_layout Standard -Print names and values of all settings. -\end_layout - -\begin_layout Subsection -Keybindings -\end_layout - -\begin_layout Standard -Keybindings bind commands or aliases to keys (or pseudo-keys). - -\end_layout - -\begin_layout Standard -Notes: -\end_layout - -\begin_layout Itemize -Do not bind edge active (+/-) commands to keys with modifiers, that won't - work right! -\end_layout - -\begin_layout Itemize -Names of keys and modifiers are platform-dependent. -\end_layout - -\begin_layout Itemize -Be careful before binding pseudo-keys (such as joystick axes, buttons or - hats) with modifiers. - That may or may not work right. -\end_layout - -\begin_layout Subsubsection -bind-key [/] -\end_layout - -\begin_layout Standard -Bind to key (activating if modifiers in (comma-seperat -ed list) are set as (comma-seperated list). -\end_layout - -\begin_layout Standard -The names of keys and modifiers are platform-dependent. -\end_layout - -\begin_layout Subsubsection -unbind-key [/] -\end_layout - -\begin_layout Standard -Unbind command from (with specified and ). -\end_layout - -\begin_layout Subsubsection -set-axis [disabled | axis | axis-inverse | pressure0- | pressure0+ - | pressure-0 | pressure-+ | pressure+0 | pressure+-] [minus=] [zero=] - [plus=] [tolerance=] -\end_layout - -\begin_layout Standard -Set axis parameters for axis . -\end_layout - -\begin_layout Itemize -disabled: Disable axis -\end_layout - -\begin_layout Itemize -axis: Normal axis -\end_layout - -\begin_layout Itemize -axis-inverse: Inverse axis -\end_layout - -\begin_layout Itemize -pressure0-: Pressure sensitive. - Released at 0, pressed at -. -\end_layout - -\begin_layout Itemize -pressure0+: Pressure sensitive. - Released at 0, pressed at +. -\end_layout - -\begin_layout Itemize -pressure-0: Pressure sensitive. - Released at -, pressed at 0. -\end_layout - -\begin_layout Itemize -pressure-+: Pressure sensitive. - Released at -, pressed at +. -\end_layout - -\begin_layout Itemize -pressure+0: Pressure sensitive. - Released at +, pressed at 0. -\end_layout - -\begin_layout Itemize -pressure+-: Pressure sensitive. - Released at +, pressed at -. -\end_layout - -\begin_layout Itemize -minus=: Calibration at extreme minus position (-32768-32767) -\end_layout - -\begin_layout Itemize -zero=: Calibration at neutral position (-32768-32767) -\end_layout - -\begin_layout Itemize -plus=: Calibration at extreme plus position (-32768-32767) -\end_layout - -\begin_layout Itemize -tolerance=: Center band tolerance (0 -\end_layout - -\begin_layout Standard -Append to alias . - If alias does not already exist, it is created. -\end_layout - -\begin_layout Subsubsection -unalias-command -\end_layout - -\begin_layout Standard -Clear alias expansion for . -\end_layout - -\begin_layout Subsubsection -show-aliases -\end_layout - -\begin_layout Standard -Print all aliases and their expansions in effect. -\end_layout - \begin_layout Subsection run-script