feat: add loading of toml support#804
Conversation
|
I would add support for Preserve PascalCase Other than that, finally <3 |
|
@Mesharsky, I think this is good to go and I've tested it locally and everything appears to work correctly. Would you like to pull down the artifacts and test for yourself before merge or all good? |
Apologies for not responding, did not see a message. |
|
@roflmuffin Oh, i thought it's working, is my implementation wrong? /game/csgo/addons/counterstrikesharp/configs/plugins/AWPManager I have AWPManager.toml Config class is as follows using CounterStrikeSharp.API.Core; Plugin.cs just registers it globally as:
Debugs i have is basically this: And it creates .json file every time, called: AWPManager.json which is wrong? |
|
That location looks right, it shouldn't try to create a json if the toml exists, are you definitely on 313+? |
|
@roflmuffin You are right, for some reason the package did not automatically update for me, what a headache, my bad. |
Adds support for basic TOML config parsing for plugin configs.
PluginName.tomlfile is found, it will read that usingTomlyn.PluginName.example.tomlfile is found, it will copy the example toPluginName.tomland then read it..jsonfile with the defaults to maintain similar behaviour as before.Closes #773