RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    [development] where to put a code that isn't a shell script?

    Scheduled Pinned Locked Moved Ideas and Development
    1 Posts 1 Posters 523 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • meleuM
      meleu
      last edited by

      I'm trying to convert my input_selection.sh to a supplementary scriptmodule. This script depends on the output of another little program I wrote: jslist.c. This code is very small, as you can see here, and it's needed to list the available joysticks. I wrote it in C because I need the SDL2 lib to get the available joysticks in the system (yeah, I know it could be python, but I'm more comfortable with C).

      My questions are:

      • where do I have to put the jslist.c in the RetroPie-Setup directory tree?
        • It's OK to create a subdirectory in .../scriptmodules/supplementary/?
      • where to put the compiled jslist?
        • It's OK to name it as /opt/retropie/supplementary/jslist?
      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.