Commit 997d993b authored by Cyril Deguet's avatar Cyril Deguet

* all: convert keys in INI files to lower case, to fix buggy winamp2 skins

parent b2b8d4df
......@@ -66,9 +66,15 @@ void IniFile::parseFile()
string var = line.substr( 0, eqPos );
string val = line.substr( eqPos + 1, line.size() - eqPos - 1);
// register the value in the var manager
pVarManager->registerConst( m_name + "." + section + "." + var,
val );
// Convert to lower case because of some buggy winamp2 skins
string name = m_name + "." + section + "." + var;
for( size_t i=0; i< name.size(); i++)
{
name[i] = tolower( name[i] );
}
// Register the value in the var manager
pVarManager->registerConst( name, val );
}
}
fs.close();
......
......@@ -343,7 +343,7 @@
<Image x="255" y="96" image="pl_resize" action="resizeSE" lefttop="rightbottom" rightbottom="rightbottom" />
<Button x="254" y="3" up="pl_switch_up" down="pl_switch_down" over="pl_switch_up" action="playlist_window.setLayout(pl_small_layout)" tooltiptext="Switch" lefttop="righttop" rightbottom="righttop" />
<Button x="264" y="3" up="pl_close_up" down="pl_close_down" over="pl_close_up" action="playlist_window.hide()" tooltiptext="Close the window" lefttop="righttop" rightbottom="righttop" />
<Playlist id="playlist" x="10" y="20" width="240" height="58" lefttop="lefttop" rightbottom="rightbottom" font="playlist_font" fgcolor="pledit.Text.Normal" playcolor="pledit.Text.Current" bgcolor1="pledit.Text.NormalBG" bgcolor2="pledit.Text.NormalBG" selcolor="pledit.Text.SelectedBG" >
<Playlist id="playlist" x="10" y="20" width="240" height="58" lefttop="lefttop" rightbottom="rightbottom" font="playlist_font" fgcolor="pledit.text.normal" playcolor="pledit.text.current" bgcolor1="pledit.text.normalbg" bgcolor2="pledit.text.normalbg" selcolor="pledit.text.selectedbg" >
<Slider id="playlist_slider" x="264" y="28" lefttop="righttop" rightbottom="rightbottom" up="pl_slider_up" down="pl_slider_down" points="(0,40),(0,0)" />
</Playlist>
<Button x="14" y="86" up="pl_add_up" down="pl_add_down" over="pl_add_up" action="playlist.add()" lefttop="leftbottom" rightbottom="leftbottom" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment