Linux and Dini
#1

It seems Dini won't work with Linux. I saw another thread about it and someone said: "Linux file system is case sensitive as far as I remember. So the only way is always convert player name to lower/upper case each time you read/write with dini." Well what exactly does this mean, could someone explain please?
Reply
#2

I think, "This Is Text" should be "this is text".
Maybe, I'm wrong...
Reply
#3

Could you explain further? I got that part, but I don't know what part of text it means exactly.
Reply
#4

/users/lightning.ini
/users/Lightning.ini
/users/LiGhtniNg.ini
/users/LIGHTNING.ini

In linux these are all different files.

Convert the file name to lower case before saving like my first example. Dutils has a strlower function which is useful for this.

e.g.

format(file, sizeof(file), "/users/%s.ini", strlower(name));

So any case of my name will always come out as /users/lightning.ini
Reply
#5

Thanks, where do I put the function exactly? lol..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)