Details

Last Updated
11 months ago
First Uploaded
11 months ago
Downloads
15K
Likes
0
Size
3.1KB
Dependency string
SmoothSpatula-TomlHelper-1.0.1
Dependants

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)
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.