SmoothSpatula-TomlHelper icon

TomlHelper

Helper mod for saving and loading Toml config files for SmoothSpatula mods.

Last updated 7 months ago
Total downloads 9562
Total rating 0 
Categories Mods Tools Libraries
Dependency string SmoothSpatula-TomlHelper-1.0.1
Dependants 26 other packages depend on this package

This mod requires the following mods to function

ReturnOfModding-ReturnOfModding-1.0.29 icon
ReturnOfModding-ReturnOfModding

Lua Mod Loader for Risk of Rain Returns

Preferred version: 1.0.29

README

SmoothSpatula-TomlHelper

Helper mod for saving and loading Toml config files for SmoothSpatula mods.

Usage example

  • Initializing and loading the config
mods.on_all_mods_loaded(function() for k, v in pairs(mods) do if type(v) == "table" and v.tomlfuncs then Toml = v end end 
    params = {
        max_number = 4,
        enabled = true
    }
    params = Toml.config_update(_ENV["!guid"], params) -- Load Save
end)
  • Saving the config
Toml.save_cfg(_ENV["!guid"], params)