[Include] [INC] SII 2.0.6 - Fast cache based INI Reader/Writer
#11

Quote:
Originally Posted by Wadabak
I guess you can also open every file on startup and write during the game to the memory, also reading from it. And when the game ends, it writes everything.

With game I mean calling OnGameModeInit and OnGameModeExit.
Not quite, you can only have one file open at a time, which is why you don't need file ID's. That's why I recommend you lay out your code similar to:
pawn Код:
if (INI_Open("filename"))
{
    // Functions here
    INI_Close();
}
To ensure any reading/writing functions don't get called if the file could not be opened. While this won't cause any direct problems, in a rare situation you might find you start manipulating data from another file that has been opened.

Glad to see you got it working Mazza101
Reply


Messages In This Thread
[INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 02:45
Re: Slick's INI Implementation 2.0.6 - Very fast cache based INI Reader/Writer - by Jason_Gregory - 18.12.2008, 03:05
Re: SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 22:20
Re: SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 23:00
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Antironix - 19.12.2008, 10:43
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 23.12.2008, 17:48
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by KillFrenzy - 24.12.2008, 00:32
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 24.12.2008, 00:40
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by KillFrenzy - 24.12.2008, 01:30
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 24.12.2008, 02:11
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 24.12.2008, 02:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 01.05.2009, 07:36
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Goldkiller - 01.05.2009, 10:04
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 03.05.2009, 05:31
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 04.05.2009, 17:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Weirdosport - 04.05.2009, 17:25
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 19.05.2009, 18:11
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by BlackFoX - 21.05.2009, 17:02
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 23.07.2009, 13:04
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by yezizhu - 23.07.2009, 13:19
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 23.07.2009, 13:39
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Chriss110 - 03.10.2009, 08:55
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [RSD]Jan - 25.10.2009, 11:07
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by aXE5LOk - 14.11.2009, 22:21
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 14.11.2009, 22:23
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Vincenzo77 - 17.01.2010, 10:05
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 07.04.2010, 11:12
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MahmutBey - 07.04.2010, 20:44
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by cloud9 - 08.04.2010, 02:52
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by kurta999 - 16.07.2010, 20:21
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by AvicennaRabama - 17.06.2015, 14:01
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Yashas - 17.06.2015, 14:50
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by AndreiWow - 05.09.2015, 15:41
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by SpikY_ - 05.09.2015, 16:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by betola - 02.07.2017, 16:07
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by NaS - 02.07.2017, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)