How are duplicate keys in SkyrimPrefs.ini treated?

How are duplicate keys in SkyrimPrefs.ini treated? - Black Handled Key on Key Hole

In the Skyrim config files, how are duplicate keys treated? For example if the file contains:

bFloatPointRenderTarget=1
bTreesReceiveShadows=1

## Notice two occurrences of the next value
bShadowsOnGrass=0
bShadowsOnGrass=1

What is the value of bShadowsOnGrass? I think there are three options:

  1. The first value is set, then all others ignored.
  2. The last value is kept, overwriting all earlier values.
  3. No value (or some default) gets set because of the conflict.

Which is right?






Pictures about "How are duplicate keys in SkyrimPrefs.ini treated?"

How are duplicate keys in SkyrimPrefs.ini treated? - Closeup Photo of Black and Blue Keyboard
How are duplicate keys in SkyrimPrefs.ini treated? - Two Pens Beside Macbook
How are duplicate keys in SkyrimPrefs.ini treated? - Close Up Photo of Keyboard





VisiData demo 1: find duplicate keys in a single dataset




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: PhotoMIX Company, Marta Branco, Lukas, Hitarth Jadhav