Ini file crap

Discussions about Servers
Post Reply
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Ini file crap

Post by Barbie »

Hi out there,

recently I wrote a INI file patcher with perl to adjust my mirrored server installation, but then I noticed that there are entries like

Code: Select all

[Engine.GameEngine]
ServerPackages=Soldierskins
ServerPackages=CommandoSkins
ServerPackages=FCommandoSkins
...
If I treat such a file with Config::Tiny or similar, only one "ServerPackages" key will remain, all other are lost.

Is there a (simple) solution for linux (except sed as last resort)?

Cheers,
Barbie
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply