Iavra Game.ini Access

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
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
 
Last edited by a moderator:

Galenmereth

Retired
Veteran
Joined
May 15, 2013
Messages
2,248
Reaction score
2,158
First Language
English
Primarily Uses
N/A
May I ask why get_option and set_option are procs and not just module functions?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
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.
 

Necrofenser

Veteran
Veteran
Joined
May 2, 2013
Messages
43
Reaction score
4
First Language
Serbian
Primarily Uses
I can't download this attachment, can you please reupload it?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
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.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top