summaryrefslogtreecommitdiff
path: root/actions.cpp
diff options
context:
space:
mode:
authorThomas Maass <mase@mase1.setho.org>2011-06-16 17:55:50 +0200
committerThomas Maass <mase@mase1.setho.org>2011-06-16 17:55:50 +0200
commitdfbd81c8c111d8df351dcf221c6a1d08bcaa13a2 (patch)
tree5dcaff5a80994aaab1d3e31a7a3322f48cb86122 /actions.cpp
downloadvdr-plugin-mame-master.tar.gz
vdr-plugin-mame-master.tar.bz2
Initial commitHEADmaster
Diffstat (limited to 'actions.cpp')
-rwxr-xr-xactions.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/actions.cpp b/actions.cpp
new file mode 100755
index 0000000..23f4353
--- /dev/null
+++ b/actions.cpp
@@ -0,0 +1,29 @@
+#include "actions.h"
+
+
+
+using namespace std;
+
+
+
+cActions::cActions()
+{}
+
+
+
+cActions::~cActions()
+{}
+
+
+
+void cActions::Play(string RomName)
+{
+ //Generate the shell-command and execute it
+ stringstream Command;
+ Command << "vdr-mame-launch.sh ";
+ Command << g_MameSetup.GeneralStopVDR << " " << g_MameSetup.PathRom << " " << RomName << " &";
+
+ SystemExec(Command.str().c_str());
+}
+
+