A set of tools that help in the development of modpacks and other WoT-related applications.
This project provides several ways to use it features:
- C API
- C# assembly
- InnoSetup script
InnoSetup code
procedure TestJson;
var
Handle: Integer;
begin
Handle := JSON_OpenFile('meow.json', True);
if Handle <> 0 then
begin
JSON_SetBool(Handle,'/meow',True); // must start with /
JSON_SetDouble(Handle,'/gaw', 1.3);
JSON_SetInteger(Handle,'/krya/krya/krya', 42);
JSON_SetString(Handle,'/chyk/chyryk', 'aaa');
JSON_Close(Handle); // save changes to the file and close it,
// after JSON_FileClose() the file handle is not valid anymore
end
end;Result
{
"chyk" :
{
"chyryk" : "aaa"
},
"gaw" : 1.3,
"krya" :
{
"krya" :
{
"krya" : 42
}
},
"meow" : true
}// Get Component Name by Index
INNO_ChecklistGetItemName(WizardForm.ComponentsList, 3)
// Get Component Description by Index
INNO_ChecklistGetItemDescription(WizardForm.ComponentsList, 3)
// Get Component Index by Name
INNO_ChecklistGetItemIndex(WizardForm.ComponentsList, 'test\lesta\sub')