home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
(Old) My Emulators
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kingmob" data-source="post: 176301" data-attributes="member: 55580"><p>I've written a very simple C++ program so that i can launch ScummVM games. One creates a directory with files that are labeled sky.scumm, tentacle.scumm, etc. In other words, the names ScummVM needs with .scumm added. This way, My Emulator can read it in the database.</p><p>Then i used the following code to start the games:</p><p>[code]</p><p>#include <cstdlib></p><p>#include <iostream></p><p>#include <string></p><p>#include <windows.h></p><p>#include <ShellAPI.h></p><p></p><p>using namespace std;</p><p></p><p>int main(int argc, char *argv[])</p><p>{</p><p> std::string ext;</p><p> std::string filename;</p><p> filename = argv[1];</p><p> ext = ".scumm";</p><p> int _i = filename.find(ext);</p><p> int _j = filename.rfind("\\");</p><p> const char *game = filename.substr(_j+1, _i-_j-1).c_str ( );</p><p> if (_i == string::npos) return EXIT_FAILURE;</p><p> else { </p><p> ShellExecute( NULL, "open", "D:\\Program Files\\ScummVM\\scummvm.exe",</p><p> game, "D:\\Program Files\\ScummVM", SW_MAXIMIZE); </p><p> }</p><p> return EXIT_SUCCESS;</p><p>}</p><p>[/code]</p><p></p><p>You can change the location of scummvm and compile it to use it yourself. I just wanted to point out a way to do it and hope there will be scummvm specific options in the plugin soon <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Kingmob, post: 176301, member: 55580"] I've written a very simple C++ program so that i can launch ScummVM games. One creates a directory with files that are labeled sky.scumm, tentacle.scumm, etc. In other words, the names ScummVM needs with .scumm added. This way, My Emulator can read it in the database. Then i used the following code to start the games: [code] #include <cstdlib> #include <iostream> #include <string> #include <windows.h> #include <ShellAPI.h> using namespace std; int main(int argc, char *argv[]) { std::string ext; std::string filename; filename = argv[1]; ext = ".scumm"; int _i = filename.find(ext); int _j = filename.rfind("\\"); const char *game = filename.substr(_j+1, _i-_j-1).c_str ( ); if (_i == string::npos) return EXIT_FAILURE; else { ShellExecute( NULL, "open", "D:\\Program Files\\ScummVM\\scummvm.exe", game, "D:\\Program Files\\ScummVM", SW_MAXIMIZE); } return EXIT_SUCCESS; } [/code] You can change the location of scummvm and compile it to use it yourself. I just wanted to point out a way to do it and hope there will be scummvm specific options in the plugin soon :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
(Old) My Emulators
Contact us
RSS
Top
Bottom