diff options
author | cracyc <cracyc@users.noreply.github.com> | 2018-03-14 17:13:59 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2018-03-14 17:13:59 -0500 |
commit | d399f0bb18dfed437c89cae7463dd008a8cb8efb (patch) | |
tree | ce47c47efda459b21b20634222d2f1e2a3ae4625 | |
parent | efacbf5f4c0751572131d089d94ed26c540d5259 (diff) |
plugins/portname: describe revised format
-rw-r--r-- | plugins/portname/init.lua | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/plugins/portname/init.lua b/plugins/portname/init.lua index f90978a34ee..23e9f904f15 100644 --- a/plugins/portname/init.lua +++ b/plugins/portname/init.lua @@ -1,9 +1,19 @@ -- license:BSD-3-Clause -- copyright-holders:Carl --- use plugin options to save the input port list to a gettext formatted file --- the file is saved in the ctrlrpath dir --- use #import <filename.po> to load names from a different file --- use #set <set1>,<set2>,... to override names for a child set, common names should be listed at the top before any #set tags +-- data files are json files named <romname>.json +-- { +-- "ports":{ +-- "<ioport name>":{ +-- "labels":{ +-- "player":<int player number>, +-- "name":"<field label>" +-- },{ +-- ... +-- } +-- } +-- } +-- any additional metadata can be included for other usage +-- and will be ignored local exports = {} exports.name = "portname" exports.version = "0.0.1" |