Emulationstation from batocera with configs and scripts for integration as Arch-Linux package
This project is maintained by GB609
This file contains a set of very simple parsers providing just enough of the specs/grammars to handle the different property file languages and styles used in batocera.linux:
For XML and YAML formatted files, an external tool will be used (xq and yq) to transform to json first.
This makes those types effectively twice as expensive to process.
Thus, where speed matters, the user should not use yml. Moreover, frequently parsed files should be handled with
dedicated in-process parsing functions.
Example: es_settings.cfg is an xml file, but very simply structured.
This function is the main entrance to this file.
It tries to auto-detect the parser function to use depending on the file type.
The detection is rudimentary, it goes by extension. Concrete handler functions are looked up
in a constant object named PARSE_FUNCTIONS.
All handler functions follow the same contract:
PropValue.[@exported]
Handles *.conf files like batocera.conf.
Capable of unpacking batocera’s special syntaxes into regular tree structures:
[@exported]
YAML FILES
return false if the current line is NOT processed by handler, but only serves as terminator
Helper class that can be used to transport meta-information about the origin of a property. Most use cases shouldn’t care because of the valueOf implementation and just behave as if it was a string. One notable exception is default initialisation by existence checks.
Generated with shdoc from /opt/batocera-emulationstation/node_modules/io/parsers.js