Sonic and Sega Retro Message Board: Embedding / Launching Emulator Within Application - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked Forum

Embedding / Launching Emulator Within Application Questions regarding Kega Fusion / Emulator General

#1 User is offline Breadbin 

Posted 05 March 2017 - 05:28 AM

  • Posts: 23
  • Joined: 03-February 17
  • Gender:Male
I am creating a small Python application to keep all my emulators in an easy to access location and am attempting to launch directly into the emulators from within Python itself - to some success.

I have successfully been able to launch Kega fusion directly into a game using pure Python but have hit a couple of areas where I may require assistance from the fair community here:

1.) I can launch Kega Fusion directly into full screen mode using the command line argument "-fullscreen". When doing so, the standard screen pops up for a moment before becoming full screen (presumably as it is going through it's standard application launch cycle, launching the game and then making the application full screen). Is there any way for me to stagger the launch of the application until it is fully loaded and then display the fullscreen window more seamlessly?

2.) I have dabbled a little bit with the .INI file and was wondering if it is possible to pass a custom .INI file via command line. I may have a bank of about 3 or 4 different configurations which I want to choose from depending on the game selected. Alternatively, I was wondering if many of these settings could be passed in via command line args but have yet to find an exhaustive list / reference.

More of an overall question; I have noticed that Kega Fusion has a plethora of features which I may never actually use within this context - is there a way to disable these features to make the overall application lighter? Alternatively, is there a Megadrive / Genesis emulator build for a lightweight deployment and speed of use?

#2 User is offline Billy 

Posted 05 March 2017 - 11:56 AM

  • RIP Oderus Urungus
  • Posts: 1823
  • Joined: 24-June 05
  • Gender:Male
  • Location:Colorado, USA
  • Project:Indie games
  • Wiki edits:15
It sounds to me that you're trying to replicate some functionality of RetroArch, so you may prefer to just use that, but I could be wrong.

1) You may be able to hide the window or put it somewhere offscreen, and then show/move it after a time interval. I have no idea if this is possible in Python.

2) Absolutely, .ini files are just text files, which can be easily written with something like Python.

#3 User is offline Hendricks 266 

Posted 05 March 2017 - 06:58 PM

  • Posts: 362
  • Joined: 01-June 05
  • Gender:Male
  • Location:United States
  • Wiki edits:58
It is likely that Fusion was not built with this kind of extensibility in mind, so you're probably going to have to start hacking around things if you want to stick with your choice of emulator. Billy's suggestion for #1 sounds good, provided you can figure out how to hook into C-based Win32 APIs from Python. For #2, I can only recommend shuffling the INI files around on disk before and after every Fusion run.

If that sounds like too much work, I've heard good things about the Genesis Plus GX core in RetroArch with regard to accuracy.

#4 User is offline Breadbin 

Posted 08 March 2017 - 04:31 PM

  • Posts: 23
  • Joined: 03-February 17
  • Gender:Male
After much of a delay, I wanted to present my findings.

RetroArch is amazing! I was originally attempting to achieve this using a different portable media player which could boot and play emulators but sadly hit a pitfall very much like my original post whereby it didn't feel like a smooth seamless transition and felt more like a tacky bootloader. RetroArch however seems to integrate emulators seamlessly into the interface and works smoother and quicker, which is a bonus.

I guess it's mission accomplished so I'm happy for this thread to be locked or disposed of however the mods see fit :)

Page 1 of 1
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users