mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
Previously it was returning `0` if the key is missing from the ini file, but the spec is to return -1: https://sfall-team.github.io/sfall/ini-settings/#get_ini_setting Note that if the key _exists_, but is the value is empty (`key=`), sfall returns `0`.
18 lines
350 B
INI
18 lines
350 B
INI
[ValidSection]
|
|
Key1=Value1
|
|
Key2=2
|
|
EmptyValue=
|
|
|
|
[SectionWithSpaces]
|
|
LeadingSpaceKey = LeadingSpaceValue
|
|
TrailingSpaceKey = TrailingSpaceValue
|
|
Both Sides Space Key = Both Sides Space Value
|
|
SimpleKey=SimpleValue
|
|
|
|
[EmptySection]
|
|
|
|
; This is TestMisc, it's not empty but won't be directly tested for content here.
|
|
[TestMisc]
|
|
Alpha=Beta
|
|
Gamma=Delta
|