Adding comments to emulators.cfg (and other system files)
-
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!
-
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.
-
@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 -->
-
@jonnykesh Awesome bud. Thanks!
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.