WerWolv / Hekate-Toolbox

A toolbox for Hekate
GNU General Public License v3.0
215 stars 23 forks source link

Allow Kosmos Toolbox to read sysmodule-defined config files #22

Closed cathery closed 4 years ago

cathery commented 4 years ago

One current detriment of Kosmos Toolbox's config file is that sysmodules can't additively include themselves into the config file without overwriting it completely. This change allows sysmodules to define the file atmosphere/contents/%TID%/toolbox.json, which Kosmos Toolbox then reads from and adds to its inner collection of sysmodule configs. Duplicate declarations of sysmodules are already handled by the existing implementation. Here's an example of how a toolbox.json would look like:

{
    "name"  : "sys-con",
    "tid"   : "690000000000000D",
    "requires_reboot": false
}
cathery commented 4 years ago

I forgot that this has merged changes from the other PR... oops