31.08.2015, 10:16
(
Последний раз редактировалось Yashas; 31.08.2015 в 13:02.
)
Quote:
Hi,
I would like to use this include, but I'm a bit lost and not sure if it's even possible. I want to dynamically load this .ini file: Код:
[1] PosX=10.0 [2] PosX=7.0 [3] PosX=8.0 Код:
INI::ParseINI(myhandle,"LoadPositions",true, .passSectionParameter = true); Код:
public LoadPositions(const key[],const value[], extra, section[]) { // I would to know which section is the key from // In this case, I would like to know if the "PosX" key I'm loading is from section 1, 2 or 3 } Код:
public LoadPositions_Section1(const key[],const value[]) public LoadPositions_Section2(const key[],const value[]) public LoadPositions_Section3(const key[],const value[]) Edit: I have edited your include to support what I wanted to achieve, here's the link for anyone wanting the same: https://gist.github.com/Nixtren/c5957fa88da565c8ab70 |
Currently it is not possible to get eINI do what you want. I will add this feature in the next update.
Next update will be available after 2 days.