Iavra Game.ini Access

Purpose

Be a simple utility module that can be used to read from and write to the Game.ini file.

Prerequisites

None

Terms of Use

Free to use for both commercial and non-commercial games. Please give credit.

How to Use

Place above all scripts that should take use of it.

Check the presence of the script like this:

if(($imported ||= {})[:iavra_ini_access]) # use the scriptelse # do something elseendLoad/write a key in the ini file.
Code:
IAVRA::INI.load("section name", "key name", "default value")
Code:
IAVRA::INI.save("section name", "key name", "value to be saved")
FAQNone so far

Changelog

- Removed pointless Procs.

Credits

Iavra

Script

http://pastebin.com/SNdYQu2r
May I ask why get_option and set_option are procs and not just module functions?
Because i got everything i know about the Win API from reading Fullscreen++ ^^


But yes, since the procs are never executed outside the module, there isn't really a point to them.
I can't download this attachment, can you please reupload it?
Ah sorry, i don't check my threads very often and the notifications are sent to an adress i never check, either, so yeah...


I'll look into it when i come home. The script is currently not on Pastebin, but i should still have it.


/edit: I added the script to pastebin and edited the OP accordingly.

Original thread: https://forums.rpgmakerweb.com/threads/iavra-game-ini-access.40347/