INI file

From Wiki

Jump to: navigation, search
(Created page with "INI files are used to configure software. Sword of Moonlight uses INI files to track in game optional settings. All Wikipedia:INI files share a few things in common. S...")
 
Line 1: Line 1:
 
[[INI file]]s are used to configure software. Sword of Moonlight uses INI files to track in game optional settings.  
 
[[INI file]]s are used to configure software. Sword of Moonlight uses INI files to track in game optional settings.  
  
All [[Wikipedia:INI file|INI file]]s share a few things in common. Sections headings enclosed in square brackets, settings that are assigned values using the equal signs, and commentary identified by lines beginning with a semicolon:
+
All [[Wikipedia:INI file|INI file]]s share a few things in common. Sections headings enclosed in square brackets, settings that are assigned values using an equal sign, and commentary identified by lines beginning with a semicolon:
  
 
  [Config]
 
  [Config]

Revision as of 15:30, 9 September 2013

INI files are used to configure software. Sword of Moonlight uses INI files to track in game optional settings.

All INI files share a few things in common. Sections headings enclosed in square brackets, settings that are assigned values using an equal sign, and commentary identified by lines beginning with a semicolon:

[Config]
device=2
width=640
height=480
;dual analog with inverted look
analogMode=-2

In addition to game settings, SOM files work just like INI files, and the SomEx project and Excellector use INI files to to configure extensions.

Modern Sword of Moonlight INI specification

There is a lot of diversity in the wide world of INI files. Originally Sword of Moonlight used the INI file reading and writing APIs provided by the Microsoft Windows operating system, as they were sufficient for setting up very basic in game settings. Modern day extended Sword of Moonlight requires added and more consistent functionality in addition to a portable implementation.

Meta characters

[]

;

=

%

%%

^= and ^%