Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; This script requires Lutana NVSE v11.1 or higher
- ; This script is an example of loading an INI file by sections.
- scn LoadINIFile
- array_var arrInput
- array_var arrSections
- array_var arrSect
- array_var arrKeys
- BEGIN _Function {arrInput}
- ; Loads the names of all sections into an array
- let arrSections := GetINISectionNames
- if eval (ar_Size arrSections == 0)
- Return
- endif
- ; Loops through the sections array, getting each section
- foreach arrSect <- arrSections
- ; Get the keys from the current section, continue if no keys
- let arrKeys := GetINISection $arrSect["value"]
- if eval (ar_Size arrKeys == 0)
- Continue
- endif
- ;Insert code or call custom function to deal with the keys here
- loop
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement