![]() |
TIniFile (split from loadIni2() - loadIni() replica)
Indeed, this is meant to be joined to a TStaticVar
Lines starting with ; are comments. Lines starting with = are appended to last line. PHP Code:
|
Updated version? :D
nice And for people wondering about joining it to a TStaticVar First you put the code Inverness posted in a class and name it something like, "file_ini" or something. Then you do something like this serverside, for example in a dbnpc or a wnpc. PHP Code:
PHP Code:
This makes it so you don't have to join "file_ini" everytime you need to load a ini file, as you can use TIniFile, as that object will have "file_ini" pre-joined. I think Inverness can explain it better though, but I tried :p |
I no longer use that method for making objects, I have a public function in System instead:
var = System.INIFile(<objectname>, <filename>); It's kinda like Python. If the filename isn't null then it does load(<filename>) automatically before returning. |
Interesting :o
|
| All times are GMT +2. The time now is 05:30 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.