RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Per folder configuration override for lightgun question

    Scheduled Pinned Locked Moved Help and Support
    sindenlightgunconfigurationlightgun
    5 Posts 2 Posters 535 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.
    • H
      hopwon
      last edited by

      Re: Sinden Lightgun a couple of questions before I buy

      @ecto You mentioned in the previous post you had sorted your Sinden games into Lightgun subfolders.

      So would this be something like .../roms/psx/Lightgun/Time Crisis...
      .../roms/psx/Lightgun/Point Blank...

      Or did you do some other way? Any pointers would be appreciated.

      ectoE 1 Reply Last reply Reply Quote 0
      • ectoE
        ecto @hopwon
        last edited by

        @hopwon Yes, exactly like that. This way I can load custom overrides for this folder (like the white borders) and I can automatically start the sinden driver with the runcommand_onstart.sh script.
        Feel free to ask if you're stuck.

        H 1 Reply Last reply Reply Quote 1
        • H
          hopwon @ecto
          last edited by

          @ecto , thanks for the clarification, I appreciate it.
          Would you mind sharing your runcommand_onstart script with me so I can plagiarise :) ?

          ectoE 1 Reply Last reply Reply Quote 0
          • ectoE
            ecto @hopwon
            last edited by ecto

            @hopwon Sure, np. I just have to get back home and still remember it! ^_^;

            Edit
            Here you go, @hopwon :

            if [[ $3 = *"Lightgun"* ]] || [ $1 = "daphne" ]
            then
              echo "Lightgun 1 enabled">&2
              cd ~/Lightgun/Player1
              sudo mono-service LightgunMono.exe
            fi
            

            The daphne part is for all the Laserdisc shooting games. In runcommand_onend.sh I put

            sudo killall "mono"
            sudo rm /tmp/LightgunMono* -f
            

            to shut down the driver.

            H 1 Reply Last reply Reply Quote 1
            • H
              hopwon @ecto
              last edited by

              @ecto Thanks so much. This helps me a load to incorporate into my build.

              Thanks a lot and I really appreciate the time.

              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.