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

    Adding comments to emulators.cfg (and other system files)

    Scheduled Pinned Locked Moved Help and Support
    commentingemulators.cfglinux basics
    4 Posts 2 Posters 1.0k 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.
    • Used2BeRXU
      Used2BeRX
      last edited by

      Hey everybody,

      I'm in the process of verifying my spreadsheet testing for NES/FDS on the Pi Zero to my emulators.cfg file and making sure everything matches up. I'd like to put in some comments, such as in between rom categories that will be ignored by the system, but make the emulators.cfg file easier for a human to read. Nobody else would probably read this stuff, but it would help me keep things straight in the future.

      Here's an example of what I'm talking about. The following is a list of all of the US Licensed NES games that aren't using the default lr-quicknes on my Pi Zero. I'd like to put in a commented header that says /home/pi/RetroPie/roms/nes/(1) Licensed/(1_1) US Licensed/ before the list begins.

      nes_ADDHillsfar = "lr-fceumm"
      nes_AdventuresofRadGravity = "lr-nestopia"
      nes_BanditKingsofAncientChina = "lr-nestopia"
      nes_BillTedsExcellentAdventure = "lr-nestopia"
      nes_BuraiFighter = "lr-nestopia"
      nes_CaptainPlanetandthePlaneteers = "lr-fceumm"
      nes_Cybernoid-TheFightingMachine = "lr-fceumm"
      nes_DirtyHarry = "lr-fceumm"
      nes_FlyingDragon-TheSecretScroll = "lr-nestopia"
      nes_Gemfire = "lr-nestopia"
      nes_GIJoe = "lr-nestopia"
      nes_GoalII = "lr-nestopia"
      nes_HeavyShreddin = "lr-nestopia"
      nes_HighSpeed = "lr-nestopia"
      nes_IndianaJonestheLastCrusade = "lr-nestopia"
      nes_Infiltrator = "lr-nestopia"
      nes_KnightRider = "lr-nestopia"
      nes_Lempereur = "lr-nestopia"
      nes_LastActionHero = "lr-nestopia"
      nes_LastNinja = "lr-fceumm"
      nes_LastStarfighter = "lr-nestopia"
      nes_MadMax = "lr-nestopia"
      nes_NESPlayActionFootball = "lr-nestopia"
      nes_NobunagasAmbitionII = "lr-nestopia"
      nes_PaperboyI = "lr-nestopia"
      nes_Pin-Bot = "lr-nestopia"
      nes_ProSportHockey = "lr-nestopia"
      nes_RocketRanger = "lr-nestopia"
      nes_RomanceoftheThreeKingdomsII = "lr-nestopia"
      nes_Roundball-2-on-2Challenge = "lr-fceumm"
      nes_SesameStreet123 = "lr-nestopia"
      nes_Simpsons-BartvstheSpaceMutants = "lr-nestopia"
      nes_SnoopysSillySportsSpectacular = "lr-nestopia"
      nes_SnowBros = "lr-nestopia"
      nes_SpaceShuttleProject = "lr-nestopia"
      nes_SuperCars = "lr-nestopia"
      nes_TimeLord = "lr-nestopia"
      nes_TinyToonAdventuresCartoonWorkshop = "lr-fceumm"
      nes_TreasureMaster = "lr-nestopia"
      nes_UnchartedWaters = "lr-nestopia"
      nes_Videomation = "lr-nestopia"
      nes_Yoshi = "lr-nestopia"
      nes_YoungIndianaJonesChronicles = "lr-nestopia"

      Then I'd like to comment in the following header before the Europe games as follows: /home/pi/RetroPie/roms/nes/(1) Licensed/(1_4) Europe/

      nes_Aladdin = "lr-nestopia"
      nes_Asterix = "lr-nestopia"
      nes_BeautyandtheBeast = "lr-nestopia"
      nes_DropZone = "lr-nestopia"
      nes_Elite = "lr-nestopia"
      nes_FormulaOneSensation = "lr-nestopia"
      nes_KickOff = "lr-nestopia"
      nes_LionKing = "lr-nestopia"
      nes_MrGimmick = "lr-nestopia"
      nes_NewGhostbustersII = "lr-nestopia"
      nes_ParasolStars-BubbleBobbleIII = "lr-nestopia"
      nes_SuperTurrican = "lr-nestopia"

      Right now, I'm only using a blank space between them, which is better than nothing, but I'd love to be able to put some comment lines in this file and I'm still a noob at Linux here.

      This would also be used to separate any of the other systems I work on since the same emulators.cfg is used to launch all game files that aren't launched by the default emulator you have selected to launch games for each system.

      Thanks!

      Used2BeRXU 1 Reply Last reply Reply Quote 0
      • Used2BeRXU
        Used2BeRX @Used2BeRX
        last edited by

        It's as simple as adding a "#" at the beginning of the line?

        I'm going to try that and see if it breaks the cfg file or not.

        jonnykeshJ 1 Reply Last reply Reply Quote 0
        • jonnykeshJ
          jonnykesh @Used2BeRX
          last edited by jonnykesh

          @used2berx Any line in a Linux file with a hash # at the beginning will be ignored. So you are correct.
          If you want to add comments to an .xml file just enclose it like this <!-- My comment -->

          Used2BeRXU 1 Reply Last reply Reply Quote 1
          • Used2BeRXU
            Used2BeRX @jonnykesh
            last edited by

            @jonnykesh Awesome bud. Thanks!

            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.