Software Support > Automated Projects
Auto rotate from Raspberry Pi/RetroPie ...
DaOld Man:
Very interesting.
Startcom is used with Mala to send orientation to mrotate.
Mala uses the mame.xml file to get game orientation. (if memory serves correctly.)
startcom gives an option to select orientation based on emulator.
Im thinking, use the mame.xml file to create a txt file that python (for the RPi) can use to get monitor orientation by game.
Remember, mame.xml is the memory, Mala is the memory sorter, startcom is the brain that processes the info passed by Mala, and mrotate is the muscle.
If we can convert mame.xml to a format that python can use, minus all the unnecessary stuff, we might can make this work.
Now if we can only figure out a way to safely shutdown the RPi by pulling the cord, we will make PBJ happy. LOL
darthpaul:
Is there an xml file?
DaOld Man:
--- Quote from: darthpaul on June 11, 2016, 12:37:00 am ---Is there an xml file?
--- End quote ---
http://www.logiqx.com/DatFAQs/MAMEDat.php
darthpaul:
But does Retropie use it?
DaOld Man:
I don't think so, but could be wrong.
Im thinking of a script that will read the xml file, and assign 0 for horz or 90 for vert for each game, since we don't need all the other stuff in the xml file, then write this info to a txt file that python can read. (This to be done only one time, unless new games are added).
Then have a script that reads the txt file and passes 0 or 90 to the python mrotate, based on game selected.
This last script could be called from the command line(? im at work and cant remember what day it is), the option in retropie (or is it emulation station?), that allows you to run a script before starting the game.
The only problem I see right now is can emulationstation pass the name of the rom to this script?
Im sure there is an easier way to do this, perhaps someone more experienced with ES and python can help?
Or, it could be a learning experience for someone. (hint hint)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version