29.08.2015, 18:18
(
Последний раз редактировалось Nixtren; 30.08.2015 в 19:32.
)
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:
I want to do something like this:
Doing something like the following is not reliable for what I'm building:
Thanks for the attention, and nice work you have done there! I'm amazed by how huge your documentation is. Btw, do you have any ideia how much time it took to write the include back in 2013?
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
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