diff options
author | Thomas Maass <mase@mase1.setho.org> | 2011-06-16 17:55:50 +0200 |
---|---|---|
committer | Thomas Maass <mase@mase1.setho.org> | 2011-06-16 17:55:50 +0200 |
commit | dfbd81c8c111d8df351dcf221c6a1d08bcaa13a2 (patch) | |
tree | 5dcaff5a80994aaab1d3e31a7a3322f48cb86122 /actions.cpp | |
download | vdr-plugin-mame-master.tar.gz vdr-plugin-mame-master.tar.bz2 |
Diffstat (limited to 'actions.cpp')
-rwxr-xr-x | actions.cpp | 29 |
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()); +} + + |