Write current RomName in TXT file

This topic contains 7 replies, has 2 voices, and was last updated by Profile photo of nasthran nasthran 1 year, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #114730
    Profile photo of nasthran
    nasthran
    Participant

    Hey Community,

    is it possible to write the current RomName (ex. super_mario_world.smc) in a TXT file (ofc the textfile need to be cleared b4, thats just one entry at the time in it) – if yes how?

    i thought about to find the file which handles the event when you choose a rom (i.e. decided which emulator should be used, initial start and so on..) – and add the txt action right b4 this all happens..

    got another ideas? which file is it which handle the idea above? …

    i hope you guys are able to help me in this case.
    best regards, Nasthran

    #114837
    Profile photo of nasthran
    nasthran
    Participant

    ..no one?! 🙁

    #114838
    Profile photo of gizmo98
    gizmo98
    Participant

    It is runcommand.sh. It’s located under /opt/retropie/supplementary/runcommand.
    You can write the rom name in a file with the following command:
    echo "$rom" >> /path/yourfile.txt

    #115260
    Profile photo of nasthran
    nasthran
    Participant

    ouh great, ye i needet to find correct lines but it works pretty well now 😀

    may you also know which file is required to handle the “Start+Select” – in other words which file is releated to handle “close rom / back to main menu” stuff ? **i whish to empty my txt after rom closing..

    best regards

    #115271
    Profile photo of gizmo98
    gizmo98
    Participant

    In runcommand.sh there is a comment like ‘# run command’ followed by ‘equal $command …’. You can add ‘rm /path/file’ under these lines.

    #115272
    Profile photo of nasthran
    nasthran
    Participant

    cant find: “equal $command” in this file, may you have the exact line for Start+Select/Quitting-Rom or mainly, returning to main memue?

    #115275
    Profile photo of gizmo98
    gizmo98
    Participant

    It’s ” eval $command </dev/tty 2>/tmp/runcommand.log.”. Mobile github does not show line numbers.

    #115281
    Profile photo of nasthran
    nasthran
    Participant

    found it and.. yay it works! – tyvm gizmo !!

Viewing 8 posts - 1 through 8 (of 8 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar